Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b300fd77
Commit
b300fd77
authored
Jun 15, 2001
by
Eli Zaretskii
Browse files
More info about fixing problems with colors on a tty.
parent
6da7ea56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
etc/PROBLEMS
etc/PROBLEMS
+17
-1
No files found.
etc/PROBLEMS
View file @
b300fd77
...
...
@@ -103,7 +103,23 @@ emulators, but this support relies on the terminfo or termcap database
entry to specify that the display supports color. Emacs looks at the
"Co"
capability for the terminal to find out how many colors are
supported; it should be non-zero to activate the color support within
Emacs. (Most color terminals support 8 or 16 colors.)
Emacs. (Most color terminals support 8 or 16 colors.) If your system
uses terminfo, the name of the capability equivalent to "Co" is
"colors".
In addition to the "Co" capability, Emacs needs the "op" (for
``original
pair'') capability, which tells how to switch the terminal
back to the default foreground and background colors. Emacs will not
use colors if this capability is not defined. If your terminal entry
doesn't provide such a capability, try using the ANSI standard escape
sequence \E[00m (that is, define a new termcap/terminfo entry and make
it use your current terminal's entry plus \E[00m for the "op"
capability).
Finally, the "NC" capability (terminfo name: "ncv") tells Emacs which
attributes cannot be used with colors. Setting this capability
incorrectly might have the effect of disabling colors; try setting
this capability to `0' (zero) and see if that helps.
Emacs uses the database entry for the terminal whose name is the value
of the environment variable TERM. With `xterm', a common terminal
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment