From f353e2219e4371cda176bc37a11ddc4bb7e32516 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 8 Oct 2017 13:47:39 +0100 Subject: [PATCH] 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. --- terminal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terminal.c b/terminal.c index 7a7207a0..a55b6e6a 100644 --- a/terminal.c +++ b/terminal.c @@ -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':