From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624
Description of problem:
I like to use terminals with white text and black backgrounds. The default
colors in many programs are hard to read against a black background. I've
discovered ways of customizing the colors of most everything: vim, ls, etc. I
have searched high and low, man pages, google, and more, and have not discovered
a way to change the colors on man pages, so I need to use reverse video to read
man pages, or do
man foo | col -b | less
to strip all colors, but that's no fun.
Is there a way to customize the colors used by man?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. start a terminal with a black background color
2. read a man page on your favorite command
3. note dark blue text very hard to read
can't do this without some serious a) troff hacking or b) remaping of colors
through Your Favorite Terminal.
Troff colors etc kinda pre-date the notion of "relative colors to the background".
If you have problems with this, you likely also have problems with the colors in
ls I presume.
No, actually, it was very easy to change the colors for ls. The
/usr/bin/dircolors command makes it easy to pick your own colors and put them
into the LS_COLORS environment variable. And vim is easy with
I was hoping a MAN_COLORS environment variable might be used somehow, but I
don't know much about groff (nor troff nor nroff), so it might very well require
some serious hacking.
Thanks for the quick response!
A friend of mine pointed out a way to change the colors not in the man pages but
in the X resources for xterm. I added these lines to my ~/.Xdefaults file and
ran xrdb to pick up the changes:
Now my man pages have very easy to read colors against dark backgrounds.