diff options
author | Joe Wilm <joe@jwilm.com> | 2017-02-11 21:13:16 -0800 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-04-03 20:44:23 -0700 |
commit | a66d19f6337e1dfc756680b8fcb960f84453e783 (patch) | |
tree | 0addebb6452baa43fc1a3ab28de0f873c56be2f7 | |
parent | 8d4c10dad65a2a26c5801448ed82ed8ebef6850a (diff) | |
download | alacritty-a66d19f6337e1dfc756680b8fcb960f84453e783.tar.gz alacritty-a66d19f6337e1dfc756680b8fcb960f84453e783.zip |
Fix issue with htop rendering incorrectly
Since we're emulating xterm, we need to support back_color_erase. If
this is found to cause any issues, please open a ticket on GitHub.
Resolves #85.
-rw-r--r-- | src/term/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 4ee685b1..44fa9e33 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -1374,7 +1374,7 @@ impl ansi::Handler for Term { #[inline] fn clear_line(&mut self, mode: ansi::LineClearMode) { trace!("clear_line: {:?}", mode); - let template = self.empty_cell; + let template = self.cursor.template; let col = self.cursor.point.col; match mode { @@ -1412,7 +1412,7 @@ impl ansi::Handler for Term { #[inline] fn clear_screen(&mut self, mode: ansi::ClearMode) { trace!("clear_screen: {:?}", mode); - let template = self.empty_cell; + let template = self.cursor.template; match mode { ansi::ClearMode::Below => { for cell in &mut self.grid[self.cursor.point.line][self.cursor.point.col..] { |