From 33eab72e3e912fa2d500631a8e291705e59bab6f Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Mon, 14 Oct 2019 02:37:53 +0000 Subject: [PATCH] k210-console: SGR 39/49 these are fairly important: reset to default color --- rust/k210-console/src/console.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/k210-console/src/console.rs b/rust/k210-console/src/console.rs index af61de0..74250e8 100644 --- a/rust/k210-console/src/console.rs +++ b/rust/k210-console/src/console.rs @@ -236,8 +236,10 @@ impl Console { 0 => { self.cur_fg = self.def_fg; self.cur_bg = self.def_bg; } 30..=37 => { self.cur_fg = PALETTE[usize::from(param - 30)]; } 38 => { state = Sgr::SpecialFg; } + 39 => { self.cur_fg = self.def_fg; } 40..=47 => { self.cur_bg = PALETTE[usize::from(param - 40)]; } 48 => { state = Sgr::SpecialBg; } + 49 => { self.cur_bg = self.def_bg; } 90..=97 => { self.cur_fg = PALETTE[usize::from(8 + param - 90)]; } 100..=107 => { self.cur_bg = PALETTE[usize::from(8 + param - 100)]; } _ => {}