Re: [PATCH 1/2] less: fully implement -R and print color escapes

2022-04-14 Thread FriendlyNeighborhoodShane
Actually, after sleeping on it, I think count_colctrl could use some more validation (even though even less doesn't do much more than this). v2 incoming. ___ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox

[PATCH 1/2] less: fully implement -R and print color escapes

2022-04-14 Thread FriendlyNeighborhoodShane
Emit NORMAL at newlines, like less, to deal with malformed input. --- Fits a little akwardly into the output flow with a break and continue, but it works. miscutils/less.c | 54 +++- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git