I’m using emacs in a console window both on my local Linux box and on the login node of a remote cluster. I use emacs regularly, and I’ve got the foreground color set to white in my .emacs file like so:
(set-foreground-color 'white') (set-background-color 'black')
However, when I run emacs, the foreground isn’t white; it’s grey and very hard to read. On my Mac, emacs in a console window with the same settings shows up as proper white. But on both linux boxes, in konsole and xterm, it’s grey.
In case it matters, I’ve got TERM set to xterm-color, the desktop is running RHEL 5, and the cluster node is running RHEL 4 (CentOS).
Is this some default with how Linux sets up terminal colors? How do I get white to be white?
Note: this is with console emacs, not emacs under X. That’s emacs -nw if you have DISPLAY set.
The color
brightwhitelooks ok on my Emacs (which is running under a terminal, not X). On RHEL5 I have myTERMenvironment variable set toxterm-256color. If it’s working correctly, you should be able to run these scripts and see 256-color output. Under Emacs, you should see a reasonably smooth color ramp (no obviously duplicated colors) when you doM-x list-colors-display. If not, you are probably missing the right termcap entry (try installing thelibtermcap-develpackage, I think).If I change
TERMtoxterm-color, thenbrightwhitecomes out a bit gray in the output oflist-colors-display.I’m not sure about RHEL4.