mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Fix issue with htop rendering incorrectly
Since we're emulating xterm, we need to support back_color_erase. If this is found to cause any issues, please open a ticket on GitHub. Resolves #85.
This commit is contained in:
parent
8d4c10dad6
commit
a66d19f633
1 changed files with 2 additions and 2 deletions
|
@ -1374,7 +1374,7 @@ impl ansi::Handler for Term {
|
|||
#[inline]
|
||||
fn clear_line(&mut self, mode: ansi::LineClearMode) {
|
||||
trace!("clear_line: {:?}", mode);
|
||||
let template = self.empty_cell;
|
||||
let template = self.cursor.template;
|
||||
let col = self.cursor.point.col;
|
||||
|
||||
match mode {
|
||||
|
@ -1412,7 +1412,7 @@ impl ansi::Handler for Term {
|
|||
#[inline]
|
||||
fn clear_screen(&mut self, mode: ansi::ClearMode) {
|
||||
trace!("clear_screen: {:?}", mode);
|
||||
let template = self.empty_cell;
|
||||
let template = self.cursor.template;
|
||||
match mode {
|
||||
ansi::ClearMode::Below => {
|
||||
for cell in &mut self.grid[self.cursor.point.line][self.cursor.point.col..] {
|
||||
|
|
Loading…
Reference in a new issue