summaryrefslogtreecommitdiff
path: root/lisp/ansi-color.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2014-03-09 23:55:35 +0200
committerJuri Linkov <juri@jurta.org>2014-03-09 23:55:35 +0200
commiteb67db411128bd47548e4a62d7272df81b75d29a (patch)
treeb804fbfac90c72cf999b22f751ac1a0b090339a8 /lisp/ansi-color.el
parent7e940b654669e8b1f4fc92ef541c165f68873248 (diff)
downloademacs-eb67db411128bd47548e4a62d7272df81b75d29a.tar.gz
* lisp/ansi-color.el (ansi-color-names-vector): Copy default colors
from `xterm-standard-colors' that look well on the default white background (and also on the black background) to avoid illegible color combinations like yello-on-white and white-on-white. http://lists.gnu.org/archive/html/emacs-devel/2014-02/msg00157.html
Diffstat (limited to 'lisp/ansi-color.el')
-rw-r--r--lisp/ansi-color.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ansi-color.el b/lisp/ansi-color.el
index 0ab811c7205..4a18c05a880 100644
--- a/lisp/ansi-color.el
+++ b/lisp/ansi-color.el
@@ -117,7 +117,7 @@ map. This color map is stored in the variable `ansi-color-map'."
: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).
@@ -147,6 +147,7 @@ foreground and background colors, respectively."
(choice color (cons color color)))
:set 'ansi-color-map-update
:initialize 'custom-initialize-default
+ :version "24.4" ; default colors copied from `xterm-standard-colors'
:group 'ansi-colors)
(defconst ansi-color-regexp "\033\\[\\([0-9;]*m\\)"