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.
This commit is contained in:
Joe Wilm 2017-02-11 21:13:16 -08:00 committed by Joe Wilm
parent 8d4c10dad6
commit a66d19f633
1 changed files with 2 additions and 2 deletions

View File

@ -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..] {