fix(compatibility): CSI cursor next line fix (#863)

Move cursor to beginning of line after moving it down.

fixes #860.
This commit is contained in:
Thomas Linford 2021-11-11 21:24:59 +01:00 committed by GitHub
parent db452577ba
commit 8a4161ee5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1846,10 +1846,13 @@ impl Perform for Grid {
}
}
} else if c == 'E' {
// Moves cursor to beginning of the line n (default 1) lines down.
let count = next_param_or(1);
let pad_character = EMPTY_TERMINAL_CHARACTER;
self.move_cursor_down_until_edge_of_screen(count, pad_character);
self.move_cursor_to_beginning_of_line();
} else if c == 'F' {
// Moves cursor to beginning of the line n (default 1) lines up.
let count = next_param_or(1);
self.move_cursor_up(count);
self.move_cursor_to_beginning_of_line();