mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
grid: track both linear and row,col cursor
This commit is contained in:
parent
963b266cce
commit
50c43be0d9
6 changed files with 95 additions and 27 deletions
10
grid.h
10
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue