From de7dcf1a5c89bc296e5b96931cd0523b3b28c411 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 23 Jun 2019 15:03:06 +0200 Subject: csi: save and restore cursor when switching to and from alt screen --- terminal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index ac5a50e4..28bfca17 100644 --- a/terminal.h +++ b/terminal.h @@ -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; -- cgit v1.3