aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/term.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs
index 3da912cb..b7848844 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -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);
+ }
+ },
}
}