-
Website
http://www.enigmacurry.com/ -
Original page
http://www.enigmacurry.com/2009/01/20/256-colors-on-the-linux-terminal/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
prasant
1 comment · 1 points
-
Christopher D. Walborn
1 comment · 1 points
-
Tim Lesher
1 comment · 1 points
-
Alex K
1 comment · 1 points
-
EnigmaCurry
11 comments · 1 points
-
-
Popular Threads
-
EnigmaCurry
1 day ago · 3 comments
-
EnigmaCurry
Screen sets TERM=screen which reverts back to 8 colors. However, resetting TERM=xterm-256color makes the colors work again inside of screen. You could probably automate this behavior by setting an alias to emacs that sets that variable beforehand.
There is also something interesting going on with Multi-TTY emacs. When I connect to an already running emacs session with emacsclient (from within screen) it doesn't matter if TERM=screen. I still see all the colors.
This is kind of a non-issue for me; I really love screen, and I have used it a lot in the past, but I have been using it less and less now that Multi-TTY emacs merged into the mainline Emacs. I run everything inside of emacs now (ansi-terms for programs outside of emacs) and when I ssh into my box I just connect to my long running emacs session.
First set the term to xterm-256color inside of Putty (Connection > Data >> Terminal Type String). Then, in GNU screen's config file .screenrc, set the term explicitly using "term xterm-256color" (more on "term screen-256color" later). Then, run emacs. If there's a problem with the colors, define a term/xterm-256color.el file some where in your elisp path with the contents of [1].
I recently tried "term screen-256color" but while the colors became 256 in number, the functions keys such as F3 and F4 did not input correctly. I am sticking with "term xterm-256color" for now.
[1] http://www.xvx.ca/~awg/emacs-colors-howto.txt
I see some strangeness in shell mode, but to be honest, that's the first time I've typed M-x shell in probably 5 years, so I'm probably not the best person to judge.
http://unstableme.blogspot.com/2007/12/colors-in-...