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
37526b42
Commit
37526b42
authored
Apr 27, 2001
by
Gerd Moellmann
Browse files
(turn_on_face): Fix reverse video handling on terminals
that don't support colors.
parent
405d5e63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
src/term.c
src/term.c
+13
-3
No files found.
src/term.c
View file @
37526b42
/* terminal control module for terminals described by TERMCAP
Copyright (C) 1985, 86, 87, 93, 94, 95, 98
Copyright (C) 1985, 86, 87, 93, 94, 95, 98
, 2000, 2001
Free Software Foundation, Inc.
This file is part of GNU Emacs.
...
...
@@ -2052,8 +2052,18 @@ turn_on_face (f, face_id)
{
/* If we can't display colors, use reverse video
if the face specifies that. */
if
(
face
->
tty_reverse_p
)
toggle_highlight
();
if
(
inverse_video
)
{
if
(
fg
==
FACE_TTY_DEFAULT_FG_COLOR
||
bg
==
FACE_TTY_DEFAULT_BG_COLOR
)
toggle_highlight
();
}
else
{
if
(
fg
==
FACE_TTY_DEFAULT_BG_COLOR
||
bg
==
FACE_TTY_DEFAULT_FG_COLOR
)
toggle_highlight
();
}
}
}
...
...
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