When I look at a man page in my 'console' (not an
xterm) I see some coloration, but I don't get this in my
konsole) is there any way I can enable this? hopefully a fairly simple solution?
You need to use the termcap(5) feature. The man page on some Unices says this tool is obsolete and to use terminfo, but it's still available on others, and terminfo is more complicated. Most importantly, Less uses Termcap.
I do the following so that
And then in my ~/.bashrc, I do this:
NOTE: See Documentation on LESS_TERMCAP_* variables? for how this works.
The final result
You can solve this issue by using a different pager, for example
I think this might be helpful.
Now get the terminfo description:
Now compile it using tic (the terminfo entry-description compiler)
And then just define an alias in the rc file of your favorite shell.
If you want to modify the terminfo file, use