diff --git a/src/currentprocess/terminalsource.rs b/src/currentprocess/terminalsource.rs index 6e0001e1dd..f89612f8a4 100644 --- a/src/currentprocess/terminalsource.rs +++ b/src/currentprocess/terminalsource.rs @@ -176,7 +176,10 @@ impl ColorableTerminal { pub fn reset(&mut self) -> io::Result<()> { match self.inner.lock().unwrap().deref_mut() { - TerminalInner::StandardStream(s, _color) => s.reset(), + TerminalInner::StandardStream(s, color) => { + color.clear(); + s.reset() + } #[cfg(feature = "test")] TerminalInner::TestWriter(_, _) => Ok(()), }