comparison src/term.c @ 37499:b8ff92361366

(turn_on_face): Fix reverse video handling on terminals that don't support colors.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 27 Apr 2001 12:37:32 +0000
parents 6a7ab4d2c7b3
children b53edc686faf
comparison
equal deleted inserted replaced
37498:0b7a984464cf 37499:b8ff92361366
1 /* terminal control module for terminals described by TERMCAP 1 /* terminal control module for terminals described by TERMCAP
2 Copyright (C) 1985, 86, 87, 93, 94, 95, 98 2 Copyright (C) 1985, 86, 87, 93, 94, 95, 98, 2000, 2001
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5 This file is part of GNU Emacs. 5 This file is part of GNU Emacs.
6 6
7 GNU Emacs is free software; you can redistribute it and/or modify 7 GNU Emacs is free software; you can redistribute it and/or modify
2050 } 2050 }
2051 else 2051 else
2052 { 2052 {
2053 /* If we can't display colors, use reverse video 2053 /* If we can't display colors, use reverse video
2054 if the face specifies that. */ 2054 if the face specifies that. */
2055 if (face->tty_reverse_p) 2055 if (inverse_video)
2056 toggle_highlight (); 2056 {
2057 if (fg == FACE_TTY_DEFAULT_FG_COLOR
2058 || bg == FACE_TTY_DEFAULT_BG_COLOR)
2059 toggle_highlight ();
2060 }
2061 else
2062 {
2063 if (fg == FACE_TTY_DEFAULT_BG_COLOR
2064 || bg == FACE_TTY_DEFAULT_FG_COLOR)
2065 toggle_highlight ();
2066 }
2057 } 2067 }
2058 } 2068 }
2059 2069
2060 if (face->tty_bold_p) 2070 if (face->tty_bold_p)
2061 { 2071 {