mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
vt: wip: implement scrolling region
This is largely untested, but existing scrolling code has been converted to using a terminal-global scrolling region that is defined as start-end of the scrollable region. This is compared to the old code where the scrolling region where defined in terms of marginals, counted in lines from top and from bottom.
This commit is contained in:
parent
7183b2f0fe
commit
b0a2c54fe8
6 changed files with 68 additions and 55 deletions
3
grid.h
3
grid.h
|
|
@ -5,8 +5,7 @@
|
|||
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, enum damage_type damage_type,
|
||||
int top_margin, int bottom_margin, int lines);
|
||||
struct grid *grid, enum damage_type damage_type, int lines);
|
||||
|
||||
void grid_erase(struct grid *grid, int start, int end);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue