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:
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user