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:
parent
db452577ba
commit
8a4161ee5b
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue