diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-06-17 19:15:20 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-06-17 19:15:20 +0000 |
| commit | 50c43be0d9729c20b1daa7a1303ca247aed2bb9e (patch) | |
| tree | e46ec16f795b5647cd09e86725dacb559ac538ea /grid.h | |
| parent | vt: handle cursor-at-right-edge (diff) | |
grid: track both linear and row,col cursor
Diffstat (limited to 'grid.h')
| -rw-r--r-- | grid.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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); |
