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

@@ -108,6 +108,7 @@ tty: clear topl after pickup_burden prompt
Gnome: destroy main game windows correctly
Gnome: Dylan Alex Simon's port of KDE-style worn window
Gnome: Dylan Alex Simon's port of KDE-style hero cursor color
tty: support terms where turning off inverse video turns off color too
General New Features

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 */