csi: save and restore cursor when switching to and from alt screen

This commit is contained in:
Daniel Eklöf 2019-06-23 15:03:06 +02:00
parent 199e4aa044
commit de7dcf1a5c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 10 additions and 2 deletions

View file

@ -63,6 +63,10 @@ struct grid {
struct cell *cells;
struct cell *normal_grid;
struct cell *alt_grid;
struct {
int row;
int col;
} alt_saved_cursor;
uint32_t foreground;
uint32_t background;