1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Turn off true colour on SCO and VT52 colour sequences.

After fixing the previous two bugs, I thought it was probably a good
idea to re-check _everywhere_ in terminal.c where curr_attr is used,
to make sure that if curr_truecolour also needed updating at the same
time then that was being done.
This commit is contained in:
Simon Tatham 2017-10-08 13:47:39 +01:00
parent e3d92df936
commit f353e2219e

View File

@ -4370,6 +4370,7 @@ static void term_out(Terminal *term)
ATTR_FGSHIFT;
term->curr_attr &= ~ATTR_FGMASK;
term->curr_attr |= colour;
term->curr_truecolour.fg = optionalrgb_none;
term->default_attr &= ~ATTR_FGMASK;
term->default_attr |= colour;
set_erase_char(term);
@ -4384,6 +4385,7 @@ static void term_out(Terminal *term)
ATTR_BGSHIFT;
term->curr_attr &= ~ATTR_BGMASK;
term->curr_attr |= colour;
term->curr_truecolour.bg = optionalrgb_none;
term->default_attr &= ~ATTR_BGMASK;
term->default_attr |= colour;
set_erase_char(term);
@ -4811,6 +4813,8 @@ static void term_out(Terminal *term)
/* compatibility(OTHER) */
term->vt52_bold = FALSE;
term->curr_attr = ATTR_DEFAULT;
term->curr_truecolour.fg = optionalrgb_none;
term->curr_truecolour.bg = optionalrgb_none;
set_erase_char(term);
break;
case 'S':