"more" command alternative that does support colors? [closed] "more" command alternative that does support colors? [closed] shell shell

"more" command alternative that does support colors? [closed]


Most commands that can output color have an option to choose between:

  • ON: Always output color
  • OFF: Never output color
  • AUTO: Show color if and only if the output is a terminal

Many commands work automatically in color AUTO mode. That is the case for emerge. And that is why you do not have color when you pipe the output: the pioe is not a terminal.

The solution is to tell emerge to output the colors unconditionally. And tell less not to filter them, of course.

Try:

emerge --color y | less -R