annotate lisp/term/tty-colors.el @ 27834:b5bc73b0b33e

(mouse-drag-mode-line-1): Remove `growth =' message.
author Dave Love <fx@gnu.org>
date Wed, 23 Feb 2000 22:19:09 +0000
parents c34a61cbfbf6
children 75b63082831b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
1 ;;; tty-color.el --- color support for character terminals
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
2
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
3 ;; Copyright (C) 1999 Free Software Foundation, Inc.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
4
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
5 ;; Author: Eli Zaretskii <eliz@is.elta.co.il>
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
6 ;; Maintainer: FSF
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
7 ;; Keywords: terminals, faces
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
8
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
9 ;; This file is part of GNU Emacs.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
10
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
12 ;; it under the terms of the GNU General Public License as published by
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
14 ;; any later version.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
15
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
16 ;; GNU Emacs is distributed in the hope that it will be useful,
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
19 ;; GNU General Public License for more details.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
20
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
24 ;; Boston, MA 02111-1307, USA.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
25
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
26 ;;; Commentary:
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
27
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
28 ;; Emacs support for colors evolved from the X Window System; color
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
29 ;; support for character-based terminals came later. Many Lisp
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
30 ;; packages use color names defined by X and assume the availability
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
31 ;; of certain functions that look up colors, convert them to pixel
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
32 ;; values, etc.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
33
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
34 ;; This file provides a more or less useful emulation of the X color
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
35 ;; functionality for character-based terminals, and thus relieves the
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
36 ;; rest of Emacs from including special code for this case.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
37
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
38 ;; Here's how it works. The support for terminal and MSDOS frames
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
39 ;; maintains an alist, called `tty-color-alist', which associates
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
40 ;; colors supported by the terminal driver with small integers.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
41 ;; (These small integers are passed to the library functions which set
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
42 ;; the color, and are effectively indices of the colors in the
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
43 ;; supported color palette.) When Emacs needs to send a color command
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
44 ;; to the terminal, the color name is first looked up in
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
45 ;; `tty-color-alist'. If not found, functions from this file can be
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
46 ;; used to map the color to one of the supported colors.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
47 ;; Specifically, the X RGB values of the requested color are extracted
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
48 ;; from `color-name-rgb-alist' and then the supported color is found
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
49 ;; with the minimal distance in the RGB space from the requested
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
50 ;; color.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
51
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
52 ;; `tty-color-alist' is created at startup by calling the function
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
53 ;; `tty-color-define', defined below, passing it each supported color,
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
54 ;; its index, and its RGB values. The standard list of colors
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
55 ;; supported by many Unix color terminals, including xterm, FreeBSD,
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
56 ;; and GNU/Linux, is supplied below in `tty-standard-colors'. If your
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
57 ;; terminal supports different or additional colors, call
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
58 ;; `tty-color-define' from your `.emacs' or `site-start.el'.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
59
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
60 ;;; Code:
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
61
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
62 (defvar color-name-rgb-alist
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
63 '(("snow" 255 250 250)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
64 ("ghostwhite" 248 248 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
65 ("whitesmoke" 245 245 245)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
66 ("gainsboro" 220 220 220)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
67 ("floralwhite" 255 250 240)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
68 ("oldlace" 253 245 230)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
69 ("linen" 250 240 230)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
70 ("antiquewhite" 250 235 215)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
71 ("papayawhip" 255 239 213)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
72 ("blanchedalmond" 255 235 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
73 ("bisque" 255 228 196)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
74 ("peachpuff" 255 218 185)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
75 ("navajowhite" 255 222 173)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
76 ("moccasin" 255 228 181)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
77 ("cornsilk" 255 248 220)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
78 ("ivory" 255 255 240)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
79 ("lemonchiffon" 255 250 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
80 ("seashell" 255 245 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
81 ("honeydew" 240 255 240)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
82 ("mintcream" 245 255 250)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
83 ("azure" 240 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
84 ("aliceblue" 240 248 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
85 ("lavender" 230 230 250)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
86 ("lavenderblush" 255 240 245)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
87 ("mistyrose" 255 228 225)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
88 ("white" 255 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
89 ("black" 0 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
90 ("darkslategray" 47 79 79)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
91 ("darkslategrey" 47 79 79)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
92 ("dimgray" 105 105 105)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
93 ("dimgrey" 105 105 105)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
94 ("slategray" 112 128 144)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
95 ("slategrey" 112 128 144)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
96 ("lightslategray" 119 136 153)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
97 ("lightslategrey" 119 136 153)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
98 ("gray" 190 190 190)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
99 ("grey" 190 190 190)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
100 ("lightgrey" 211 211 211)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
101 ("lightgray" 211 211 211)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
102 ("midnightblue" 25 25 112)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
103 ("navy" 0 0 128)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
104 ("navyblue" 0 0 128)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
105 ("cornflowerblue" 100 149 237)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
106 ("darkslateblue" 72 61 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
107 ("slateblue" 106 90 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
108 ("mediumslateblue" 123 104 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
109 ("lightslateblue" 132 112 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
110 ("mediumblue" 0 0 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
111 ("royalblue" 65 105 225)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
112 ("blue" 0 0 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
113 ("dodgerblue" 30 144 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
114 ("deepskyblue" 0 191 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
115 ("skyblue" 135 206 235)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
116 ("lightskyblue" 135 206 250)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
117 ("steelblue" 70 130 180)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
118 ("lightsteelblue" 176 196 222)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
119 ("lightblue" 173 216 230)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
120 ("powderblue" 176 224 230)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
121 ("paleturquoise" 175 238 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
122 ("darkturquoise" 0 206 209)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
123 ("mediumturquoise" 72 209 204)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
124 ("turquoise" 64 224 208)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
125 ("cyan" 0 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
126 ("lightcyan" 224 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
127 ("cadetblue" 95 158 160)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
128 ("mediumaquamarine" 102 205 170)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
129 ("aquamarine" 127 255 212)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
130 ("darkgreen" 0 100 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
131 ("darkolivegreen" 85 107 47)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
132 ("darkseagreen" 143 188 143)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
133 ("seagreen" 46 139 87)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
134 ("mediumseagreen" 60 179 113)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
135 ("lightseagreen" 32 178 170)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
136 ("palegreen" 152 251 152)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
137 ("springgreen" 0 255 127)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
138 ("lawngreen" 124 252 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
139 ("green" 0 255 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
140 ("chartreuse" 127 255 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
141 ("mediumspringgreen" 0 250 154)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
142 ("greenyellow" 173 255 47)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
143 ("limegreen" 50 205 50)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
144 ("yellowgreen" 154 205 50)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
145 ("forestgreen" 34 139 34)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
146 ("olivedrab" 107 142 35)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
147 ("darkkhaki" 189 183 107)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
148 ("khaki" 240 230 140)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
149 ("palegoldenrod" 238 232 170)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
150 ("lightgoldenrodyellow" 250 250 210)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
151 ("lightyellow" 255 255 224)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
152 ("yellow" 255 255 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
153 ("gold" 255 215 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
154 ("lightgoldenrod" 238 221 130)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
155 ("goldenrod" 218 165 32)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
156 ("darkgoldenrod" 184 134 11)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
157 ("rosybrown" 188 143 143)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
158 ("indianred" 205 92 92)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
159 ("saddlebrown" 139 69 19)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
160 ("sienna" 160 82 45)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
161 ("peru" 205 133 63)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
162 ("burlywood" 222 184 135)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
163 ("beige" 245 245 220)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
164 ("wheat" 245 222 179)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
165 ("sandybrown" 244 164 96)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
166 ("tan" 210 180 140)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
167 ("chocolate" 210 105 30)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
168 ("firebrick" 178 34 34)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
169 ("brown" 165 42 42)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
170 ("darksalmon" 233 150 122)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
171 ("salmon" 250 128 114)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
172 ("lightsalmon" 255 160 122)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
173 ("orange" 255 165 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
174 ("darkorange" 255 140 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
175 ("coral" 255 127 80)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
176 ("lightcoral" 240 128 128)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
177 ("tomato" 255 99 71)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
178 ("orangered" 255 69 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
179 ("red" 255 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
180 ("hotpink" 255 105 180)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
181 ("deeppink" 255 20 147)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
182 ("pink" 255 192 203)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
183 ("lightpink" 255 182 193)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
184 ("palevioletred" 219 112 147)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
185 ("maroon" 176 48 96)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
186 ("mediumvioletred" 199 21 133)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
187 ("violetred" 208 32 144)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
188 ("magenta" 255 0 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
189 ("violet" 238 130 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
190 ("plum" 221 160 221)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
191 ("orchid" 218 112 214)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
192 ("mediumorchid" 186 85 211)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
193 ("darkorchid" 153 50 204)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
194 ("darkviolet" 148 0 211)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
195 ("blueviolet" 138 43 226)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
196 ("purple" 160 32 240)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
197 ("mediumpurple" 147 112 219)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
198 ("thistle" 216 191 216)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
199 ("snow1" 255 250 250)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
200 ("snow2" 238 233 233)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
201 ("snow3" 205 201 201)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
202 ("snow4" 139 137 137)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
203 ("seashell1" 255 245 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
204 ("seashell2" 238 229 222)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
205 ("seashell3" 205 197 191)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
206 ("seashell4" 139 134 130)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
207 ("antiquewhite1" 255 239 219)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
208 ("antiquewhite2" 238 223 204)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
209 ("antiquewhite3" 205 192 176)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
210 ("antiquewhite4" 139 131 120)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
211 ("bisque1" 255 228 196)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
212 ("bisque2" 238 213 183)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
213 ("bisque3" 205 183 158)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
214 ("bisque4" 139 125 107)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
215 ("peachpuff1" 255 218 185)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
216 ("peachpuff2" 238 203 173)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
217 ("peachpuff3" 205 175 149)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
218 ("peachpuff4" 139 119 101)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
219 ("navajowhite1" 255 222 173)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
220 ("navajowhite2" 238 207 161)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
221 ("navajowhite3" 205 179 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
222 ("navajowhite4" 139 121 94)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
223 ("lemonchiffon1" 255 250 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
224 ("lemonchiffon2" 238 233 191)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
225 ("lemonchiffon3" 205 201 165)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
226 ("lemonchiffon4" 139 137 112)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
227 ("cornsilk1" 255 248 220)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
228 ("cornsilk2" 238 232 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
229 ("cornsilk3" 205 200 177)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
230 ("cornsilk4" 139 136 120)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
231 ("ivory1" 255 255 240)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
232 ("ivory2" 238 238 224)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
233 ("ivory3" 205 205 193)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
234 ("ivory4" 139 139 131)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
235 ("honeydew1" 240 255 240)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
236 ("honeydew2" 224 238 224)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
237 ("honeydew3" 193 205 193)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
238 ("honeydew4" 131 139 131)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
239 ("lavenderblush1" 255 240 245)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
240 ("lavenderblush2" 238 224 229)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
241 ("lavenderblush3" 205 193 197)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
242 ("lavenderblush4" 139 131 134)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
243 ("mistyrose1" 255 228 225)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
244 ("mistyrose2" 238 213 210)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
245 ("mistyrose3" 205 183 181)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
246 ("mistyrose4" 139 125 123)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
247 ("azure1" 240 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
248 ("azure2" 224 238 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
249 ("azure3" 193 205 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
250 ("azure4" 131 139 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
251 ("slateblue1" 131 111 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
252 ("slateblue2" 122 103 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
253 ("slateblue3" 105 89 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
254 ("slateblue4" 71 60 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
255 ("royalblue1" 72 118 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
256 ("royalblue2" 67 110 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
257 ("royalblue3" 58 95 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
258 ("royalblue4" 39 64 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
259 ("blue1" 0 0 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
260 ("blue2" 0 0 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
261 ("blue3" 0 0 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
262 ("blue4" 0 0 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
263 ("dodgerblue1" 30 144 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
264 ("dodgerblue2" 28 134 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
265 ("dodgerblue3" 24 116 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
266 ("dodgerblue4" 16 78 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
267 ("steelblue1" 99 184 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
268 ("steelblue2" 92 172 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
269 ("steelblue3" 79 148 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
270 ("steelblue4" 54 100 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
271 ("deepskyblue1" 0 191 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
272 ("deepskyblue2" 0 178 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
273 ("deepskyblue3" 0 154 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
274 ("deepskyblue4" 0 104 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
275 ("skyblue1" 135 206 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
276 ("skyblue2" 126 192 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
277 ("skyblue3" 108 166 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
278 ("skyblue4" 74 112 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
279 ("lightskyblue1" 176 226 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
280 ("lightskyblue2" 164 211 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
281 ("lightskyblue3" 141 182 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
282 ("lightskyblue4" 96 123 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
283 ("slategray1" 198 226 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
284 ("slategray2" 185 211 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
285 ("slategray3" 159 182 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
286 ("slategray4" 108 123 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
287 ("lightsteelblue1" 202 225 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
288 ("lightsteelblue2" 188 210 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
289 ("lightsteelblue3" 162 181 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
290 ("lightsteelblue4" 110 123 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
291 ("lightblue1" 191 239 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
292 ("lightblue2" 178 223 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
293 ("lightblue3" 154 192 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
294 ("lightblue4" 104 131 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
295 ("lightcyan1" 224 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
296 ("lightcyan2" 209 238 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
297 ("lightcyan3" 180 205 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
298 ("lightcyan4" 122 139 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
299 ("paleturquoise1" 187 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
300 ("paleturquoise2" 174 238 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
301 ("paleturquoise3" 150 205 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
302 ("paleturquoise4" 102 139 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
303 ("cadetblue1" 152 245 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
304 ("cadetblue2" 142 229 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
305 ("cadetblue3" 122 197 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
306 ("cadetblue4" 83 134 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
307 ("turquoise1" 0 245 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
308 ("turquoise2" 0 229 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
309 ("turquoise3" 0 197 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
310 ("turquoise4" 0 134 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
311 ("cyan1" 0 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
312 ("cyan2" 0 238 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
313 ("cyan3" 0 205 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
314 ("cyan4" 0 139 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
315 ("darkslategray1" 151 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
316 ("darkslategray2" 141 238 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
317 ("darkslategray3" 121 205 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
318 ("darkslategray4" 82 139 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
319 ("aquamarine1" 127 255 212)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
320 ("aquamarine2" 118 238 198)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
321 ("aquamarine3" 102 205 170)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
322 ("aquamarine4" 69 139 116)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
323 ("darkseagreen1" 193 255 193)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
324 ("darkseagreen2" 180 238 180)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
325 ("darkseagreen3" 155 205 155)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
326 ("darkseagreen4" 105 139 105)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
327 ("seagreen1" 84 255 159)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
328 ("seagreen2" 78 238 148)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
329 ("seagreen3" 67 205 128)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
330 ("seagreen4" 46 139 87)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
331 ("palegreen1" 154 255 154)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
332 ("palegreen2" 144 238 144)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
333 ("palegreen3" 124 205 124)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
334 ("palegreen4" 84 139 84)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
335 ("springgreen1" 0 255 127)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
336 ("springgreen2" 0 238 118)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
337 ("springgreen3" 0 205 102)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
338 ("springgreen4" 0 139 69)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
339 ("green1" 0 255 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
340 ("green2" 0 238 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
341 ("green3" 0 205 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
342 ("green4" 0 139 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
343 ("chartreuse1" 127 255 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
344 ("chartreuse2" 118 238 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
345 ("chartreuse3" 102 205 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
346 ("chartreuse4" 69 139 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
347 ("olivedrab1" 192 255 62)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
348 ("olivedrab2" 179 238 58)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
349 ("olivedrab3" 154 205 50)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
350 ("olivedrab4" 105 139 34)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
351 ("darkolivegreen1" 202 255 112)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
352 ("darkolivegreen2" 188 238 104)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
353 ("darkolivegreen3" 162 205 90)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
354 ("darkolivegreen4" 110 139 61)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
355 ("khaki1" 255 246 143)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
356 ("khaki2" 238 230 133)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
357 ("khaki3" 205 198 115)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
358 ("khaki4" 139 134 78)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
359 ("lightgoldenrod1" 255 236 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
360 ("lightgoldenrod2" 238 220 130)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
361 ("lightgoldenrod3" 205 190 112)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
362 ("lightgoldenrod4" 139 129 76)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
363 ("lightyellow1" 255 255 224)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
364 ("lightyellow2" 238 238 209)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
365 ("lightyellow3" 205 205 180)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
366 ("lightyellow4" 139 139 122)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
367 ("yellow1" 255 255 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
368 ("yellow2" 238 238 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
369 ("yellow3" 205 205 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
370 ("yellow4" 139 139 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
371 ("gold1" 255 215 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
372 ("gold2" 238 201 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
373 ("gold3" 205 173 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
374 ("gold4" 139 117 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
375 ("goldenrod1" 255 193 37)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
376 ("goldenrod2" 238 180 34)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
377 ("goldenrod3" 205 155 29)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
378 ("goldenrod4" 139 105 20)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
379 ("darkgoldenrod1" 255 185 15)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
380 ("darkgoldenrod2" 238 173 14)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
381 ("darkgoldenrod3" 205 149 12)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
382 ("darkgoldenrod4" 139 101 8)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
383 ("rosybrown1" 255 193 193)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
384 ("rosybrown2" 238 180 180)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
385 ("rosybrown3" 205 155 155)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
386 ("rosybrown4" 139 105 105)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
387 ("indianred1" 255 106 106)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
388 ("indianred2" 238 99 99)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
389 ("indianred3" 205 85 85)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
390 ("indianred4" 139 58 58)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
391 ("sienna1" 255 130 71)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
392 ("sienna2" 238 121 66)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
393 ("sienna3" 205 104 57)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
394 ("sienna4" 139 71 38)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
395 ("burlywood1" 255 211 155)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
396 ("burlywood2" 238 197 145)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
397 ("burlywood3" 205 170 125)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
398 ("burlywood4" 139 115 85)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
399 ("wheat1" 255 231 186)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
400 ("wheat2" 238 216 174)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
401 ("wheat3" 205 186 150)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
402 ("wheat4" 139 126 102)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
403 ("tan1" 255 165 79)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
404 ("tan2" 238 154 73)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
405 ("tan3" 205 133 63)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
406 ("tan4" 139 90 43)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
407 ("chocolate1" 255 127 36)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
408 ("chocolate2" 238 118 33)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
409 ("chocolate3" 205 102 29)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
410 ("chocolate4" 139 69 19)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
411 ("firebrick1" 255 48 48)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
412 ("firebrick2" 238 44 44)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
413 ("firebrick3" 205 38 38)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
414 ("firebrick4" 139 26 26)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
415 ("brown1" 255 64 64)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
416 ("brown2" 238 59 59)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
417 ("brown3" 205 51 51)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
418 ("brown4" 139 35 35)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
419 ("salmon1" 255 140 105)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
420 ("salmon2" 238 130 98)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
421 ("salmon3" 205 112 84)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
422 ("salmon4" 139 76 57)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
423 ("lightsalmon1" 255 160 122)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
424 ("lightsalmon2" 238 149 114)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
425 ("lightsalmon3" 205 129 98)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
426 ("lightsalmon4" 139 87 66)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
427 ("orange1" 255 165 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
428 ("orange2" 238 154 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
429 ("orange3" 205 133 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
430 ("orange4" 139 90 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
431 ("darkorange1" 255 127 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
432 ("darkorange2" 238 118 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
433 ("darkorange3" 205 102 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
434 ("darkorange4" 139 69 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
435 ("coral1" 255 114 86)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
436 ("coral2" 238 106 80)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
437 ("coral3" 205 91 69)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
438 ("coral4" 139 62 47)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
439 ("tomato1" 255 99 71)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
440 ("tomato2" 238 92 66)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
441 ("tomato3" 205 79 57)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
442 ("tomato4" 139 54 38)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
443 ("orangered1" 255 69 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
444 ("orangered2" 238 64 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
445 ("orangered3" 205 55 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
446 ("orangered4" 139 37 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
447 ("red1" 255 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
448 ("red2" 238 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
449 ("red3" 205 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
450 ("red4" 139 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
451 ("deeppink1" 255 20 147)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
452 ("deeppink2" 238 18 137)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
453 ("deeppink3" 205 16 118)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
454 ("deeppink4" 139 10 80)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
455 ("hotpink1" 255 110 180)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
456 ("hotpink2" 238 106 167)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
457 ("hotpink3" 205 96 144)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
458 ("hotpink4" 139 58 98)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
459 ("pink1" 255 181 197)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
460 ("pink2" 238 169 184)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
461 ("pink3" 205 145 158)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
462 ("pink4" 139 99 108)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
463 ("lightpink1" 255 174 185)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
464 ("lightpink2" 238 162 173)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
465 ("lightpink3" 205 140 149)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
466 ("lightpink4" 139 95 101)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
467 ("palevioletred1" 255 130 171)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
468 ("palevioletred2" 238 121 159)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
469 ("palevioletred3" 205 104 137)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
470 ("palevioletred4" 139 71 93)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
471 ("maroon1" 255 52 179)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
472 ("maroon2" 238 48 167)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
473 ("maroon3" 205 41 144)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
474 ("maroon4" 139 28 98)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
475 ("violetred1" 255 62 150)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
476 ("violetred2" 238 58 140)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
477 ("violetred3" 205 50 120)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
478 ("violetred4" 139 34 82)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
479 ("magenta1" 255 0 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
480 ("magenta2" 238 0 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
481 ("magenta3" 205 0 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
482 ("magenta4" 139 0 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
483 ("orchid1" 255 131 250)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
484 ("orchid2" 238 122 233)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
485 ("orchid3" 205 105 201)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
486 ("orchid4" 139 71 137)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
487 ("plum1" 255 187 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
488 ("plum2" 238 174 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
489 ("plum3" 205 150 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
490 ("plum4" 139 102 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
491 ("mediumorchid1" 224 102 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
492 ("mediumorchid2" 209 95 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
493 ("mediumorchid3" 180 82 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
494 ("mediumorchid4" 122 55 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
495 ("darkorchid1" 191 62 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
496 ("darkorchid2" 178 58 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
497 ("darkorchid3" 154 50 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
498 ("darkorchid4" 104 34 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
499 ("purple1" 155 48 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
500 ("purple2" 145 44 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
501 ("purple3" 125 38 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
502 ("purple4" 85 26 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
503 ("mediumpurple1" 171 130 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
504 ("mediumpurple2" 159 121 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
505 ("mediumpurple3" 137 104 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
506 ("mediumpurple4" 93 71 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
507 ("thistle1" 255 225 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
508 ("thistle2" 238 210 238)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
509 ("thistle3" 205 181 205)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
510 ("thistle4" 139 123 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
511 ("gray0" 0 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
512 ("grey0" 0 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
513 ("gray1" 3 3 3)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
514 ("grey1" 3 3 3)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
515 ("gray2" 5 5 5)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
516 ("grey2" 5 5 5)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
517 ("gray3" 8 8 8)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
518 ("grey3" 8 8 8)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
519 ("gray4" 10 10 10)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
520 ("grey4" 10 10 10)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
521 ("gray5" 13 13 13)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
522 ("grey5" 13 13 13)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
523 ("gray6" 15 15 15)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
524 ("grey6" 15 15 15)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
525 ("gray7" 18 18 18)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
526 ("grey7" 18 18 18)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
527 ("gray8" 20 20 20)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
528 ("grey8" 20 20 20)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
529 ("gray9" 23 23 23)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
530 ("grey9" 23 23 23)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
531 ("gray10" 26 26 26)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
532 ("grey10" 26 26 26)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
533 ("gray11" 28 28 28)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
534 ("grey11" 28 28 28)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
535 ("gray12" 31 31 31)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
536 ("grey12" 31 31 31)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
537 ("gray13" 33 33 33)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
538 ("grey13" 33 33 33)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
539 ("gray14" 36 36 36)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
540 ("grey14" 36 36 36)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
541 ("gray15" 38 38 38)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
542 ("grey15" 38 38 38)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
543 ("gray16" 41 41 41)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
544 ("grey16" 41 41 41)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
545 ("gray17" 43 43 43)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
546 ("grey17" 43 43 43)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
547 ("gray18" 46 46 46)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
548 ("grey18" 46 46 46)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
549 ("gray19" 48 48 48)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
550 ("grey19" 48 48 48)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
551 ("gray20" 51 51 51)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
552 ("grey20" 51 51 51)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
553 ("gray21" 54 54 54)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
554 ("grey21" 54 54 54)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
555 ("gray22" 56 56 56)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
556 ("grey22" 56 56 56)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
557 ("gray23" 59 59 59)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
558 ("grey23" 59 59 59)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
559 ("gray24" 61 61 61)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
560 ("grey24" 61 61 61)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
561 ("gray25" 64 64 64)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
562 ("grey25" 64 64 64)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
563 ("gray26" 66 66 66)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
564 ("grey26" 66 66 66)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
565 ("gray27" 69 69 69)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
566 ("grey27" 69 69 69)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
567 ("gray28" 71 71 71)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
568 ("grey28" 71 71 71)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
569 ("gray29" 74 74 74)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
570 ("grey29" 74 74 74)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
571 ("gray30" 77 77 77)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
572 ("grey30" 77 77 77)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
573 ("gray31" 79 79 79)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
574 ("grey31" 79 79 79)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
575 ("gray32" 82 82 82)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
576 ("grey32" 82 82 82)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
577 ("gray33" 84 84 84)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
578 ("grey33" 84 84 84)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
579 ("gray34" 87 87 87)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
580 ("grey34" 87 87 87)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
581 ("gray35" 89 89 89)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
582 ("grey35" 89 89 89)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
583 ("gray36" 92 92 92)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
584 ("grey36" 92 92 92)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
585 ("gray37" 94 94 94)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
586 ("grey37" 94 94 94)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
587 ("gray38" 97 97 97)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
588 ("grey38" 97 97 97)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
589 ("gray39" 99 99 99)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
590 ("grey39" 99 99 99)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
591 ("gray40" 102 102 102)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
592 ("grey40" 102 102 102)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
593 ("gray41" 105 105 105)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
594 ("grey41" 105 105 105)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
595 ("gray42" 107 107 107)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
596 ("grey42" 107 107 107)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
597 ("gray43" 110 110 110)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
598 ("grey43" 110 110 110)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
599 ("gray44" 112 112 112)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
600 ("grey44" 112 112 112)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
601 ("gray45" 115 115 115)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
602 ("grey45" 115 115 115)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
603 ("gray46" 117 117 117)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
604 ("grey46" 117 117 117)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
605 ("gray47" 120 120 120)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
606 ("grey47" 120 120 120)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
607 ("gray48" 122 122 122)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
608 ("grey48" 122 122 122)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
609 ("gray49" 125 125 125)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
610 ("grey49" 125 125 125)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
611 ("gray50" 127 127 127)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
612 ("grey50" 127 127 127)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
613 ("gray51" 130 130 130)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
614 ("grey51" 130 130 130)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
615 ("gray52" 133 133 133)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
616 ("grey52" 133 133 133)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
617 ("gray53" 135 135 135)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
618 ("grey53" 135 135 135)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
619 ("gray54" 138 138 138)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
620 ("grey54" 138 138 138)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
621 ("gray55" 140 140 140)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
622 ("grey55" 140 140 140)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
623 ("gray56" 143 143 143)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
624 ("grey56" 143 143 143)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
625 ("gray57" 145 145 145)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
626 ("grey57" 145 145 145)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
627 ("gray58" 148 148 148)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
628 ("grey58" 148 148 148)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
629 ("gray59" 150 150 150)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
630 ("grey59" 150 150 150)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
631 ("gray60" 153 153 153)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
632 ("grey60" 153 153 153)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
633 ("gray61" 156 156 156)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
634 ("grey61" 156 156 156)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
635 ("gray62" 158 158 158)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
636 ("grey62" 158 158 158)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
637 ("gray63" 161 161 161)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
638 ("grey63" 161 161 161)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
639 ("gray64" 163 163 163)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
640 ("grey64" 163 163 163)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
641 ("gray65" 166 166 166)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
642 ("grey65" 166 166 166)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
643 ("gray66" 168 168 168)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
644 ("grey66" 168 168 168)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
645 ("gray67" 171 171 171)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
646 ("grey67" 171 171 171)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
647 ("gray68" 173 173 173)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
648 ("grey68" 173 173 173)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
649 ("gray69" 176 176 176)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
650 ("grey69" 176 176 176)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
651 ("gray70" 179 179 179)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
652 ("grey70" 179 179 179)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
653 ("gray71" 181 181 181)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
654 ("grey71" 181 181 181)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
655 ("gray72" 184 184 184)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
656 ("grey72" 184 184 184)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
657 ("gray73" 186 186 186)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
658 ("grey73" 186 186 186)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
659 ("gray74" 189 189 189)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
660 ("grey74" 189 189 189)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
661 ("gray75" 191 191 191)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
662 ("grey75" 191 191 191)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
663 ("gray76" 194 194 194)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
664 ("grey76" 194 194 194)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
665 ("gray77" 196 196 196)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
666 ("grey77" 196 196 196)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
667 ("gray78" 199 199 199)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
668 ("grey78" 199 199 199)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
669 ("gray79" 201 201 201)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
670 ("grey79" 201 201 201)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
671 ("gray80" 204 204 204)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
672 ("grey80" 204 204 204)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
673 ("gray81" 207 207 207)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
674 ("grey81" 207 207 207)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
675 ("gray82" 209 209 209)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
676 ("grey82" 209 209 209)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
677 ("gray83" 212 212 212)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
678 ("grey83" 212 212 212)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
679 ("gray84" 214 214 214)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
680 ("grey84" 214 214 214)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
681 ("gray85" 217 217 217)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
682 ("grey85" 217 217 217)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
683 ("gray86" 219 219 219)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
684 ("grey86" 219 219 219)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
685 ("gray87" 222 222 222)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
686 ("grey87" 222 222 222)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
687 ("gray88" 224 224 224)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
688 ("grey88" 224 224 224)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
689 ("gray89" 227 227 227)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
690 ("grey89" 227 227 227)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
691 ("gray90" 229 229 229)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
692 ("grey90" 229 229 229)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
693 ("gray91" 232 232 232)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
694 ("grey91" 232 232 232)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
695 ("gray92" 235 235 235)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
696 ("grey92" 235 235 235)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
697 ("gray93" 237 237 237)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
698 ("grey93" 237 237 237)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
699 ("gray94" 240 240 240)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
700 ("grey94" 240 240 240)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
701 ("gray95" 242 242 242)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
702 ("grey95" 242 242 242)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
703 ("gray96" 245 245 245)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
704 ("grey96" 245 245 245)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
705 ("gray97" 247 247 247)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
706 ("grey97" 247 247 247)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
707 ("gray98" 250 250 250)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
708 ("grey98" 250 250 250)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
709 ("gray99" 252 252 252)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
710 ("grey99" 252 252 252)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
711 ("gray100" 255 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
712 ("grey100" 255 255 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
713 ("darkgrey" 169 169 169)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
714 ("darkgray" 169 169 169)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
715 ("darkblue" 0 0 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
716 ("darkcyan" 0 139 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
717 ("darkmagenta" 139 0 139)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
718 ("darkred" 139 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
719 ("lightgreen" 144 238 144))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
720 "An alist of X color names and associated 8-bit RGB values.")
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
721
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
722 (defvar tty-standard-colors
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
723 '(("white" 7 65535 65535 65535)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
724 ("cyan" 6 0 65535 65535)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
725 ("magenta" 5 65535 0 65535)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
726 ("blue" 4 0 0 65535)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
727 ("yellow" 3 65535 65535 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
728 ("green" 2 0 65535 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
729 ("red" 1 65535 0 0)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
730 ("black" 0 0 0 0))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
731 "An alist of 8 standard tty colors, their indices and RGB values.")
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
732
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
733 (defvar tty-defined-color-alist nil
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
734 "An alist of defined terminal colors and their RGB values.
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
735
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
736 See the docstring of `tty-color-alist' for the details.")
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
737
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
738 (defun tty-color-alist (&optional frame)
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
739 "Return an alist of colors supported by FRAME's terminal.
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
740 FRAME defaults to the selected frame.
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
741 Each element of the returned alist is of the form:
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
742 \(NAME INDEX R G B\)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
743 where NAME is the name of the color, a string;
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
744 INDEX is the index of this color to be sent to the terminal driver
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
745 when the color should be displayed; it is typically a small integer;
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
746 R, G, and B are the intensities of, accordingly, red, green, and blue
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
747 components of the color, represented as numbers between 0 and 65535.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
748 The file `etc/rgb.txt' in the Emacs distribution lists the standard
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
749 RGB values of the X colors. If RGB is nil, this color will not be
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
750 considered by `tty-color-translate' as an approximation to another
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
751 color."
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
752 tty-defined-color-alist)
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
753
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
754 (defun tty-modify-color-alist (elt &optional frame)
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
755 "Put the association ELT int the alist of terminal colors for FRAME.
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
756 ELT should be of the form \(NAME INDEX R G B\) (see `tty-color-alist'
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
757 for details).
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
758 If FRAME is unspecified or nil, it defaults to the selected frame.
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
759 Value is the modified color alist for FRAME."
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
760 (let* ((entry (assoc (car elt) (tty-color-alist frame))))
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
761 (if entry
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
762 (setcdr entry (cdr elt))
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
763 (setq tty-defined-color-alist (cons elt tty-defined-color-alist)))
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
764 tty-defined-color-alist))
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
765
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
766 (defun tty-color-canonicalize (color)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
767 "Return COLOR in canonical form.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
768 A canonicalized color name is all-lower case, with any blanks removed."
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
769 (let ((color (downcase color)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
770 (while (string-match " +" color)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
771 (setq color (replace-match "" nil nil color)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
772 color))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
773
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
774 (defun tty-color-define (name index &optional rgb frame)
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
775 "Specify a tty color by its NAME, terminal INDEX and RGB values.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
776 NAME is a string, INDEX is typically a small integer used to send to
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
777 the terminal driver to switch on this color, and RGB is a list of 3
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
778 numbers that specify the intensity of red, green, and blue components
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
779 of the color.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
780 If specified, each one of the RGB components must be a number between
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
781 0 and 65535. If RGB is omitted, the specified color will never be used
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
782 by `tty-color-translate' as an approximation to another color.
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
783 If FRAME is not specified or is nil, it defaults to the selected frame."
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
784 (if (or (not (stringp name))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
785 (not (integerp index))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
786 (and rgb (or (not (listp rgb)) (/= (length rgb) 3))))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
787 (error "Invalid specification for tty color \"%s\"" name))
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
788 (tty-modify-color-alist
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
789 (append (list (tty-color-canonicalize name) index) rgb) frame))
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
790
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
791 (defun tty-color-clear (&optional frame)
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
792 "Clear the list of supported tty colors for frame FRAME.
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
793 If FRAME is unspecified or nil, it defaults to the selected frame."
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
794 (setq tty-defined-color-alist nil))
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
795
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
796 (defun tty-color-off-gray-diag (r g b)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
797 "Compute the angle between the color given by R,G,B and the gray diagonal."
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
798 (let ((mag (sqrt (* 3 (+ (* r r) (* g g) (* b b))))))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
799 (if (< mag 1) 0 (acos (/ (+ r g b) mag)))))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
800
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
801 (defun tty-color-approximate (rgb &optional frame)
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
802 "Given a list of 3 rgb values in RGB, find the color in `tty-color-alist'
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
803 which is the best approximation in the 3-dimensional RGB space,
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
804 and return the index associated with the approximating color.
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
805 Each value of the RGB triplet has to be scaled to the 0..255 range.
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
806 FRAME defaults to the selected frame."
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
807 (let* ((color-list (tty-color-alist frame))
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
808 (candidate (car color-list))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
809 (best-distance 195076) ;; 3 * 255^2 + 15
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
810 best-color)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
811 (while candidate
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
812 (let* ((try-rgb (cddr candidate))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
813 (r (car rgb))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
814 (g (cadr rgb))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
815 (b (nth 2 rgb))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
816 ;; If the approximated color is not close enough to the
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
817 ;; gray diagonal of the RGB cube, favor non-gray colors.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
818 ;; (The number 0.065 is an empirical ad-hoc'ery.)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
819 (favor-non-gray (>= (tty-color-off-gray-diag r g b) 0.065))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
820 try-r try-g try-b
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
821 dif-r dif-g dif-b dist)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
822 ;; If the RGB values of the candidate color are unknown, we
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
823 ;; never consider it for approximating another color.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
824 (if try-rgb
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
825 (progn
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
826 (setq try-r (lsh (car try-rgb) -8)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
827 try-g (lsh (cadr try-rgb) -8)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
828 try-b (lsh (nth 2 try-rgb) -8))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
829 (setq dif-r (- (car rgb) try-r)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
830 dif-g (- (cadr rgb) try-g)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
831 dif-b (- (nth 2 rgb) try-b))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
832 (setq dist (+ (* dif-r dif-r) (* dif-g dif-g) (* dif-b dif-b)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
833 (if (and (< dist best-distance)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
834 ;; The candidate color is on the gray diagonal
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
835 ;; if its RGB components are all equal.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
836 (or (/= try-r try-g) (/= try-g try-b)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
837 (not favor-non-gray)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
838 (setq best-distance dist
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
839 best-color candidate)))))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
840 (setq color-list (cdr color-list))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
841 (setq candidate (car color-list)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
842 (cadr best-color)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
843
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
844 (defun tty-color-translate (color &optional frame)
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
845 "Given a color COLOR, return the index of the corresponding TTY color.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
846 COLOR must be a string that is either the color's name, or its X-style
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
847 specification like \"#RRGGBB\" or \"RGB:rr/gg/bb\", where each primary.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
848 color can be given with 1 to 4 hex digits.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
849 If COLOR is a color name that is found among supported colors in
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
850 `tty-color-alist', the associated index is returned. Otherwise, the
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
851 RGB values of the color, either as given by the argument or from
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
852 looking up the name in `color-name-rgb-alist', are used to find the
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
853 supported color that is the best approximation for COLOR in the RGB
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
854 space.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
855 If COLOR is neither a valid X RGB specification of the color, nor a
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
856 name of a color in `color-name-rgb-alist', the returned value is nil.
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
857 If FRAME is unspecified or nil, it defaults to the selected frame."
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
858 (and (stringp color)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
859 (let* ((color (tty-color-canonicalize color))
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
860 (idx (cadr (assoc color (tty-color-alist frame)))))
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
861 (or idx
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
862 (let* ((len (length color))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
863 (maxval 256)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
864 (rgb
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
865 (cond
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
866 ((and (>= len 4) ;; X-style "#XXYYZZ" color spec
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
867 (eq (aref color 0) ?#)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
868 (member (aref color 1)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
869 '(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
870 ?a ?b ?c ?d ?e ?f)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
871 ;; Translate the string "#XXYYZZ" into a list
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
872 ;; of numbers (XX YY ZZ). If the primary colors
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
873 ;; are specified with less than 4 hex digits,
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
874 ;; the used digits represent the most significant
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
875 ;; bits of the value (e.g. #XYZ = #X000Y000Z000).
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
876 (let* ((ndig (/ (- len 1) 3))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
877 (i1 1)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
878 (i2 (+ i1 ndig))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
879 (i3 (+ i2 ndig)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
880 (list
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
881 (lsh
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
882 (string-to-number (substring color i1 i2) 16)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
883 (* 4 (- 2 ndig)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
884 (lsh
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
885 (string-to-number (substring color i2 i3) 16)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
886 (* 4 (- 2 ndig)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
887 (lsh
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
888 (string-to-number (substring color i3) 16)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
889 (* 4 (- 2 ndig))))))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
890 ((and (>= len 9) ;; X-style RGB:xx/yy/zz color spec
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
891 (string= (substring color 0 4) "rgb:"))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
892 ;; Translate the string "RGB:XX/YY/ZZ" into a list
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
893 ;; of numbers (XX YY ZZ). If fewer than 4 hex
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
894 ;; digits are used, they represent the fraction
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
895 ;; of the maximum value (RGB:X/Y/Z = #XXXXYYYYZZZZ).
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
896 (let* ((ndig (/ (- len 3) 3))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
897 (maxval (1- (expt 16 (- ndig 1))))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
898 (i1 4)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
899 (i2 (+ i1 ndig))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
900 (i3 (+ i2 ndig)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
901 (list
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
902 (/ (* (string-to-number
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
903 (substring color i1 (- i2 1)) 16)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
904 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
905 maxval)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
906 (/ (* (string-to-number
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
907 (substring color i2 (- i3 1)) 16)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
908 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
909 maxval)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
910 (/ (* (string-to-number
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
911 (substring color i3) 16)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
912 255)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
913 maxval))))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
914 (t
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
915 (cdr (assoc color color-name-rgb-alist))))))
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
916 (and rgb (tty-color-approximate rgb frame)))))))
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
917
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
918 (defun tty-color-by-index (idx &optional frame)
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
919 "Given a numeric index of a tty color, return its description.
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
920 FRAME, if unspecified or nil, defaults to the selected frame.
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
921 Value is a list of the form \(NAME INDEX R G B\)."
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
922 (and idx
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
923 (let ((colors (tty-color-alist frame))
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
924 desc found)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
925 (while colors
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
926 (setq desc (car colors))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
927 (if (eq idx (car (cdr desc)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
928 (setq found desc))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
929 (setq colors (cdr colors)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
930 found)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
931
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
932 (defun tty-color-values (color &optional frame)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
933 "Return RGB values of the color COLOR on a termcap frame FRAME.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
934 If COLOR is not directly supported by the display, return the RGB
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
935 values for a supported color that is its best approximation.
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
936 The value is a list of integer RGB values--\(RED GREEN BLUE\).
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
937 These values range from 0 to 65535; white is (65535 65535 65535).
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
938 If FRAME is omitted or nil, use the selected frame."
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
939 (let* ((frame (or frame (selected-frame)))
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
940 (color (tty-color-canonicalize color))
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
941 (supported (assoc color (tty-color-alist frame))))
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
942 (or (and supported (cddr supported)) ; full spec in tty-color-alist
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
943 (and supported ; no RGB values in tty-color-alist: use X RGB values
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
944 (assoc color color-name-rgb-alist)
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
945 (cddr
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
946 (tty-color-by-index
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
947 (tty-color-approximate
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
948 (cdr (assoc color color-name-rgb-alist)) frame) frame)))
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
949 (cddr (tty-color-by-index (tty-color-translate color frame) frame)))))
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
950
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
951 (defun tty-color-desc (color &optional frame)
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
952 "Return the description of the color COLOR for a character terminal.
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
953 FRAME, if unspecified or nil, defaults to the selected frame.
26736
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
954 Value is a list of the form \(NAME INDEX R G B\). Note that the returned
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
955 NAME is not necessarily the same string as the argument COLOR, because
a0674327c167 Changes for automatic remapping of X colors on terminal frames:
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
956 the latter might need to be approximated if it is not supported directly."
27089
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
957 (let ((idx (tty-color-translate color frame)))
5d4d3f1ba0cc (tty-defined-color-alist): Renamed from tty-color-alist.
Eli Zaretskii <eliz@gnu.org>
parents: 26736
diff changeset
958 (tty-color-by-index idx frame)))
27568
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
959
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
960 (defun tty-color-gray-shades (&optional display)
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
961 "Return the number of gray colors supported by DISPLAY's terminal.
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
962 A color is considered gray if the 3 components of its RGB value are equal."
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
963 (let* ((frame (if (framep display) display
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
964 ;; FIXME: this uses an arbitrary frame from DISPLAY!
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
965 (car (frames-on-display-list display))))
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
966 (colors (tty-color-alist frame))
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
967 (count 0)
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
968 desc r g b)
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
969 (while colors
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
970 (setq desc (cddr (car colors))
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
971 r (car desc)
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
972 g (cadr desc)
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
973 b (car (cddr desc)))
27569
c34a61cbfbf6 Don't count colors without RGB values as gray shades.
Eli Zaretskii <eliz@gnu.org>
parents: 27568
diff changeset
974 (and (numberp r)
c34a61cbfbf6 Don't count colors without RGB values as gray shades.
Eli Zaretskii <eliz@gnu.org>
parents: 27568
diff changeset
975 (eq r g) (eq g b)
27568
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
976 (setq count (1+ count)))
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
977 (setq colors (cdr colors)))
fd817cff1000 (tty-color-gray-shades): New function.
Eli Zaretskii <eliz@gnu.org>
parents: 27089
diff changeset
978 count))