From 50c43be0d9729c20b1daa7a1303ca247aed2bb9e Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 17 Jun 2019 21:15:20 +0200 Subject: grid: track both linear and row,col cursor --- terminal.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index e6a2e1f2..efea5106 100644 --- a/terminal.h +++ b/terminal.h @@ -28,8 +28,13 @@ struct grid { int cell_width; int cell_height; - int cursor; + int linear_cursor; + struct { + int row; + int col; + } cursor; bool print_needs_wrap; + struct cell *cells; uint32_t foreground; -- cgit v1.3