diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-02 20:23:54 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-02 20:23:54 +0000 |
| commit | 8ed723945802c2e2bbe18bb5653c6025ed14cc6b (patch) | |
| tree | 28a0d9860961b57fedf18a6259ee6bae19baaa4e | |
| parent | csi: repair DCH (delete character) (diff) | |
csi: re-set cursor when switching between alt and normal screen
This forces a refresh of the "current line" pointer.
| -rw-r--r-- | csi.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -587,6 +587,8 @@ csi_dispatch(struct terminal *term, uint8_t final) term->grid = &term->alt; term->saved_cursor = term->cursor; + term_cursor_to(term, term->cursor.row, term->cursor.col); + tll_free(term->alt.damage); tll_free(term->alt.scroll_damage); term_erase(term, 0, term->rows * term->cols); @@ -644,6 +646,8 @@ csi_dispatch(struct terminal *term, uint8_t final) term->cursor = term->saved_cursor; + term_cursor_to(term, term->cursor.row, term->cursor.col); + /* Should these be restored from saved values? */ term->scroll_region.start = 0; term->scroll_region.end = term->rows; |
