aboutsummaryrefslogtreecommitdiff
path: root/grid.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 /grid.h
parentvt: handle cursor-at-right-edge (diff)
grid: track both linear and row,col cursor
Diffstat (limited to 'grid.h')
-rw-r--r--grid.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/grid.h b/grid.h
index 3f347cff..032708ad 100644
--- a/grid.h
+++ b/grid.h
@@ -4,5 +4,11 @@
void grid_erase(struct grid *grid, int start, int end);
-void grid_cursor_to(struct grid *grid, int pos);
-void grid_cursor_move(struct grid *grid, int cols);
+void grid_cursor_to(struct grid *grid, int row, int col);
+void grid_cursor_left(struct grid *grid, int count);
+void grid_cursor_right(struct grid *grid, int count);
+
+int grid_cursor_linear(const struct grid *grid, int row, int col);
+
+//void grid_cursor_to(struct grid *grid, int pos);
+//void grid_cursor_move(struct grid *grid, int cols);