From 7ca98211458d4c5b5e1230b1710c010e5db0855a Mon Sep 17 00:00:00 2001 From: Casey Primozic Date: Tue, 10 Jan 2017 19:11:58 -0600 Subject: [PATCH] Fixed issue with resetting background color for Termion backend - Background color was being set back to the theme's background color rather than the terminal's background color when the backend was `finish()`ed. This resets the background color to the default instead. --- src/backend/termion.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/termion.rs b/src/backend/termion.rs index 56277c0..3ebdae7 100644 --- a/src/backend/termion.rs +++ b/src/backend/termion.rs @@ -108,7 +108,7 @@ impl backend::Backend for Concrete { fn finish(&mut self) { print!("{}{}", termion::cursor::Show, termion::cursor::Goto(1, 1)); - self.clear(); + print!("{}[49m{}[39m{}", 27 as char, 27 as char, termion::clear::All); } fn init_color_style(&mut self, style: theme::ColorStyle,