Term handles LineClearMode::{Left, All}

This commit is contained in:
Joe Wilm 2016-08-22 08:11:34 -07:00
parent e0377f02ac
commit 5dfeb95fcb
1 changed files with 12 additions and 1 deletions

View File

@ -640,7 +640,18 @@ impl ansi::Handler for Term {
cell.reset(&template);
}
},
_ => (),
ansi::LineClearMode::Left => {
let row = &mut self.grid[self.cursor.line];
for cell in &mut row[..(self.cursor.col + 1)] {
cell.reset(&template);
}
},
ansi::LineClearMode::All => {
let row = &mut self.grid[self.cursor.line];
for cell in &mut row[..] {
cell.reset(&template);
}
},
}
}