Emacs 256 colors not working using PuTTY and screen

emacs, emacs23, putty

Solution

I hit the same problem.

To fix this problem, just add this to ~/.bashrc (yes,I use bash)

# -----------
export TERM=xterm-256color
export TERMCAP=
# ------------

run screen and emacs in an screen window. it's ok now.

versions:

bash-4.2.45

emacs-24.3_10

Screen version 4.00.03 (FAU) 23-Oct-06

Problem

I'm having trouble getting 256 colors to work using emacs 23.1.1 connecting using PuTTY and screen. Server is running CentOS 5.6. In my PuTTY config, my terminal-type string is set to `xterm-256color`. In my `.screenrc` I have `term xterm-256color` Once in screen `tput colors` gives me `256`, `echo $TERM` gives me `xterm-256color`, but once I start emacs `M-x list-colors-display` only gives me 8 colors. Not sure what the problem is. Thanks.

Original source

Related problems