Term handles LineClearMode::{Left, All}
This commit is contained in:
parent
e0377f02ac
commit
5dfeb95fcb
13
src/term.rs
13
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);
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue