On Fri, Jan 19, 2018 at 8:40 PM, Lubomir Rintel <[email protected]> wrote: > chained are two patches that add make the less applet behave well with > tools that use coloring and paging at the same time. My first busybox > patches, so I beg for some understanding if I didn't get things right. > > Issues have been reported for nmcli, systemd and git upstreams (perhaps > more) all of the falling victim to a rather reasonable assumption that > a thing called "less" behaves like "less" (in support of "-R" option > in particular). I guess the implausibility of teaching all of the > affected tools to do some sort of capability assessment of pager's > capabilities justifies the slight growth in the applet size.
In testing, your patch does not work well when end of line with color escapes is past the end of screen. For now I adapted your patches so that less -R just removes color escapes. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
