Simulate invisible characters on terminals that do not support this attribute

This commit is contained in:
Markus Gans 2017-11-08 17:19:29 +01:00
parent ed73858196
commit c9b346f419
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
2017-11-07 Markus Gans <guru.mail@muenster.de>
2017-11-08 Markus Gans <guru.mail@muenster.de>
* Simulate invisible characters on terminals that do not
support this attribute

View File

@ -535,14 +535,14 @@ char* FOptiAttr::changeAttribute (char_data*& term, char_data*& next)
detectSwitchOn (term, next);
detectSwitchOff (term, next);
// look for no changes
if ( ! ( switchOn() || switchOff() || colorChange(term, next) ) )
return 0;
// Simulate invisible characters
if ( ! F_enter_secure_mode.cap && next->attr.bit.invisible )
next->code = ' ';
// look for no changes
if ( ! ( switchOn() || switchOff() || colorChange(term, next) ) )
return 0;
if ( cygwin_terminal && (term->fg_color > 7 || term->bg_color > 7) )
{
// reset blink and bold mode from colors > 7