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.
This commit is contained in:
Casey Primozic 2017-01-10 19:11:58 -06:00
parent 8c366389a7
commit 7ca9821145

View File

@ -108,7 +108,7 @@ impl backend::Backend for Concrete {
fn finish(&mut self) { fn finish(&mut self) {
print!("{}{}", termion::cursor::Show, termion::cursor::Goto(1, 1)); 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, fn init_color_style(&mut self, style: theme::ColorStyle,