mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04: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
|
|
@ -28,7 +28,7 @@ struct cell {
|
|||
struct attributes attrs;
|
||||
};
|
||||
|
||||
enum damage_type {DAMAGE_UPDATE, DAMAGE_ERASE, DAMAGE_SCROLL};
|
||||
enum damage_type {DAMAGE_UPDATE, DAMAGE_ERASE, DAMAGE_SCROLL, DAMAGE_SCROLL_REVERSE};
|
||||
struct damage {
|
||||
enum damage_type type;
|
||||
union {
|
||||
|
|
@ -38,7 +38,7 @@ struct damage {
|
|||
int length;
|
||||
} range;
|
||||
|
||||
/* DAMAGE_SCROLL */
|
||||
/* DAMAGE_SCROLL, DAMAGE_SCROLL_REVERSE */
|
||||
struct {
|
||||
int top_margin;
|
||||
int bottom_margin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue