Term handles LineClearMode::{Left, All}

This commit is contained in:
Joe Wilm committed 2016-08-22 08:11:34 -07:00
1 parent e0377f02ac
commit 5dfeb95fcb
1 file changed
+12 -1
+12 -1
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);
}
},
}
}