1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -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:
Joe Wilm 2017-02-11 21:13:16 -08:00 committed by Joe Wilm
parent 8d4c10dad6
commit a66d19f633

View file

@ -1374,7 +1374,7 @@ impl ansi::Handler for Term {
#[inline] #[inline]
fn clear_line(&mut self, mode: ansi::LineClearMode) { fn clear_line(&mut self, mode: ansi::LineClearMode) {
trace!("clear_line: {:?}", mode); trace!("clear_line: {:?}", mode);
let template = self.empty_cell; let template = self.cursor.template;
let col = self.cursor.point.col; let col = self.cursor.point.col;
match mode { match mode {
@ -1412,7 +1412,7 @@ impl ansi::Handler for Term {
#[inline] #[inline]
fn clear_screen(&mut self, mode: ansi::ClearMode) { fn clear_screen(&mut self, mode: ansi::ClearMode) {
trace!("clear_screen: {:?}", mode); trace!("clear_screen: {:?}", mode);
let template = self.empty_cell; let template = self.cursor.template;
match mode { match mode {
ansi::ClearMode::Below => { ansi::ClearMode::Below => {
for cell in &mut self.grid[self.cursor.point.line][self.cursor.point.col..] { for cell in &mut self.grid[self.cursor.point.line][self.cursor.point.col..] {