mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
vt: implement reverse scrolling (terminfo 'ri')
This currently duplicates the code paths for DAMAGE_SCROLL; there are many similarities between the two, but also major differences...
This commit is contained in:
parent
c0a9f9e6b2
commit
fbf0db621c
5 changed files with 132 additions and 28 deletions
4
grid.h
4
grid.h
|
|
@ -5,7 +5,8 @@
|
|||
void grid_damage_update(struct grid *grid, int start, int length);
|
||||
void grid_damage_erase(struct grid *grid, int start, int length);
|
||||
void grid_damage_scroll(
|
||||
struct grid *grid, int top_margin, int bottom_margin, int lines);
|
||||
struct grid *grid, enum damage_type damage_type,
|
||||
int top_margin, int bottom_margin, int lines);
|
||||
|
||||
void grid_erase(struct grid *grid, int start, int end);
|
||||
|
||||
|
|
@ -16,6 +17,7 @@ void grid_cursor_up(struct grid *grid, int count);
|
|||
void grid_cursor_down(struct grid *grid, int count);
|
||||
|
||||
void grid_scroll(struct grid *grid, int rows);
|
||||
void grid_scroll_reverse(struct grid *grid, int rows);
|
||||
|
||||
int grid_cursor_linear(const struct grid *grid, int row, int col);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue