aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-23 15:16:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-23 15:16:52 +0000
commitfbf0db621cb29804e67af850c1646c3185464dcb (patch)
tree22206e5e80e7ef7a04ca19ec827bc5cbaa61e2e7 /terminal.h
parentresize: bug: we're not in alt screen mode at startup (diff)
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...
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 28bfca17..08b441d9 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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;