An “more" alternative that supports colors?

This is on my list of the 10 most painstaking things on Linux. I like the color output in the terminals: nice to see and useful when reading.

The first thing I do on the new system is to set aliases for lsand grepto show color output, and the second to set vimand htop.

I use both Gentoo and Ubuntu, and I see that the emergeGentoo package manager has better readability than apt-get/aptitudejust because it uses a lot more color output than the last.

So, whenever I have to associate a command emergewith more, all the color is lost, and I have to focus on each line so as not to miss anything important.

I can understand that a basic command, such as more, should not depend on ncurses(someone may argue that we also have one less, so one of them may even be compatible with color), but why there is no known alternative morethat supports colors, as is for vi/vim, top/htopetc.

Thanks for any hint.

+5
source share
1 answer

Most commands that can display color have the ability to choose between:

  • ON: always display color
  • OFF: never output color
  • AUTO: Show color if and only if the output is a terminal

AUTO. emege. : pioe .

, emerge . less , .

Try:

emerge --color y | less -R
+13

All Articles