emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I avoid purple-on-black and yellow-on-white?


From: Juri Linkov
Subject: Re: How do I avoid purple-on-black and yellow-on-white?
Date: Fri, 07 Feb 2014 21:54:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)

> 1. if the background is white, do not use yellow for anything

On a graphical display, shell mode often displays illegible
yellow-on-white output because the default value of
`ansi-color-names-vector' contains "yellow".  It would help to use
the same color like is used on a text terminal that is "yellow3".
Then other colors could be copied from `xterm-standard-colors' as well:

=== modified file 'lisp/ansi-color.el'
--- lisp/ansi-color.el  2014-01-01 07:43:34 +0000
+++ lisp/ansi-color.el  2014-02-07 19:54:27 +0000
@@ -117,7 +117,7 @@ (defcustom ansi-color-faces-vector
   :group 'ansi-colors)
 
 (defcustom ansi-color-names-vector
-  ["black" "red" "green" "yellow" "blue" "magenta" "cyan" "white"]
+  ["black" "red3" "green3" "yellow3" "blue2" "magenta3" "cyan3" "gray90"]
   "Colors used for SGR control sequences determining a color.
 This vector holds the colors used for SGR control sequences parameters
 30 to 37 (foreground colors) and 40 to 47 (background colors).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]