Sample Header Ad - 728x90

Make `most` pager properly handle colours from standard‑input

13 votes
1 answer
3386 views
How do I make the most pager properly display colours in text received from standard‑input? Note: I'm not sure whether or not it's a bug in most. I am not encountering the same issue with less and more, only with most, which otherwise works nicely as a pager used by man. I'm not posting an image, and invite people to try this (only if you have most installed): $ command apropos zip | command grep --color=always zip | command less $ command apropos zip | command grep --color=always zip | command more $ command apropos zip | command grep --color=always zip | command most less and more properly display colours, while most displays colours with additional “garbage” ^[[K wrapping all coloured text areas. Surprisingly, this is OK: $ (export PAGER=most; command man zip) Am I missing something (the manual page for most did not help), misusing the command or is this something which I should report as a bug? ## A note on less (update): As Sparhawk mentioned in a comment, less does not work either if it's not given the option -R (or --RAW-CONTROL-CHARS) or -r (or --raw-control-chars), which may also be set in the LESS environment variable. And indeed, I first searched for a similar option for most (but failed to find one). ## Update All have issues with coloured UTF‑8 encoded text, not just most. In my case, the terminal is fine with it, so that's not the terminal. The same uncoloured UTF‑8 text is fine with all three pagers, so that's not the characters encoding.
Asked by Hibou57 (955 rep)
Aug 15, 2014, 12:12 AM
Last activity: Aug 16, 2014, 05:35 AM