R812 - tty color/inverse video interaction

With some TERMs, disabling inverse video also disables color.
Work around: explicitly turn off color when turning off inverse video.
This commit is contained in:
cohrs
2002-04-21 19:01:57 +00:00
parent 5bc5910ed8
commit d79e5a8917
2 changed files with 8 additions and 1 deletions

View File

@@ -2436,8 +2436,14 @@ tty_print_glyph(window, x, y, glyph)
#endif
g_putch(ch); /* print the character */
if (reverse_on)
if (reverse_on) {
term_end_attr(ATR_INVERSE);
/* turn off color as well, ATR_INVERSE may have done this already */
if(ttyDisplay->color != NO_COLOR) {
term_end_color();
ttyDisplay->color = NO_COLOR;
}
}
wins[window]->curx++; /* one character over */
ttyDisplay->curx++; /* the real cursor moved too */