From c9b346f419b90353f52fc9955515d9c6a3507415 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Wed, 8 Nov 2017 17:19:29 +0100 Subject: [PATCH] Simulate invisible characters on terminals that do not support this attribute --- ChangeLog | 2 +- src/foptiattr.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index fbd54837..2e3f7d91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -2017-11-07 Markus Gans +2017-11-08 Markus Gans * Simulate invisible characters on terminals that do not support this attribute diff --git a/src/foptiattr.cpp b/src/foptiattr.cpp index 98a95dec..7486397d 100644 --- a/src/foptiattr.cpp +++ b/src/foptiattr.cpp @@ -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