My Emacs installation has full color support (list-colors-display shows this). However, Emacs *shell* only appears to be able to handle the basic 8 ANSI color escapes. I have those handled by the following in my .emacs:
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
Is there a way to increase the number of colors supported in *shell*?
To get 256-color in terminal you must use appropriate terminal emulator.
Check if your terminal suport this:
$ infocmp -1 $TERM | grep colors colors#8,
For example xterm allow this, but you must set TERM=xterm-256color.
If I'm reading correctly setting ansi flags/settings will only allow 8 colors,get rid of them and replace with this setting tty-color-mode 256
From:
http://www.gnu.org/software/emacs/elisp/html_node/Font-and-Color-Parameters.html
http://www.gnu.org/software/libtool/manual/emacs/Colors.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With