Emacs/xterm color annoyance on Linux

Posted by tgamblin on Stack Overflow See other posts from Stack Overflow or by tgamblin
Published on 2009-03-24T22:55:39Z Indexed on 2010/06/17 4:03 UTC
Read the original article Hit count: 261

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about linux

Related posts about emacs