comparison etc/PROBLEMS @ 38054:fee34716d07c

More info about fixing problems with colors on a tty.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 15 Jun 2001 10:04:55 +0000
parents ad9617225b8d
children 647c8404a670
comparison
equal deleted inserted replaced
38053:3e512ad7ce98 38054:fee34716d07c
101 Emacs 21 supports colors on character terminals and terminal 101 Emacs 21 supports colors on character terminals and terminal
102 emulators, but this support relies on the terminfo or termcap database 102 emulators, but this support relies on the terminfo or termcap database
103 entry to specify that the display supports color. Emacs looks at the 103 entry to specify that the display supports color. Emacs looks at the
104 "Co" capability for the terminal to find out how many colors are 104 "Co" capability for the terminal to find out how many colors are
105 supported; it should be non-zero to activate the color support within 105 supported; it should be non-zero to activate the color support within
106 Emacs. (Most color terminals support 8 or 16 colors.) 106 Emacs. (Most color terminals support 8 or 16 colors.) If your system
107 uses terminfo, the name of the capability equivalent to "Co" is
108 "colors".
109
110 In addition to the "Co" capability, Emacs needs the "op" (for
111 ``original pair'') capability, which tells how to switch the terminal
112 back to the default foreground and background colors. Emacs will not
113 use colors if this capability is not defined. If your terminal entry
114 doesn't provide such a capability, try using the ANSI standard escape
115 sequence \E[00m (that is, define a new termcap/terminfo entry and make
116 it use your current terminal's entry plus \E[00m for the "op"
117 capability).
118
119 Finally, the "NC" capability (terminfo name: "ncv") tells Emacs which
120 attributes cannot be used with colors. Setting this capability
121 incorrectly might have the effect of disabling colors; try setting
122 this capability to `0' (zero) and see if that helps.
107 123
108 Emacs uses the database entry for the terminal whose name is the value 124 Emacs uses the database entry for the terminal whose name is the value
109 of the environment variable TERM. With `xterm', a common terminal 125 of the environment variable TERM. With `xterm', a common terminal
110 entry that supports color is `xterm-color', so setting TERM's value to 126 entry that supports color is `xterm-color', so setting TERM's value to
111 `xterm-color' might activate the color support on an xterm-compatible 127 `xterm-color' might activate the color support on an xterm-compatible