diff --git a/doc/fixes34.1 b/doc/fixes34.1 index b10f28493..fede05675 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -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 diff --git a/win/tty/wintty.c b/win/tty/wintty.c index a9c356f67..d550e0b1d 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -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 */