aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-08-22 08:11:34 -0700
committerJoe Wilm <joe@jwilm.com>2016-08-22 08:11:34 -0700
commit5dfeb95fcb48e290ae99d6691ca1d1760d72a8db (patch)
tree9111fc9fc42ba3fea92d0c717352fee42bd986af
parente0377f02ac034837d67c61cee625fd368403533a (diff)
downloadr-alacritty-5dfeb95fcb48e290ae99d6691ca1d1760d72a8db.tar.gz
r-alacritty-5dfeb95fcb48e290ae99d6691ca1d1760d72a8db.tar.bz2
r-alacritty-5dfeb95fcb48e290ae99d6691ca1d1760d72a8db.zip
Term handles LineClearMode::{Left, All}
-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);
+ }
+ },
}
}