aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-17 19:15:20 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-17 19:15:20 +0000
commit50c43be0d9729c20b1daa7a1303ca247aed2bb9e (patch)
treee46ec16f795b5647cd09e86725dacb559ac538ea /terminal.h
parentvt: handle cursor-at-right-edge (diff)
grid: track both linear and row,col cursor
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h7
1 files changed, 6 insertions, 1 deletions
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;