aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-23 19:12:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-23 19:12:32 +0000
commit2fe7145aff1cf710fc00519a0f72199c3fa0a929 (patch)
tree02c6de8abe717252630ddb4b8c4f580380af6ba8 /terminal.h
parentcsi: recognize, but do nothing, for civis, cvvis (diff)
scrolling region: wip
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index ee866b83..5dba62c6 100644
--- a/terminal.h
+++ b/terminal.h
@@ -28,7 +28,9 @@ struct cell {
struct attributes attrs;
};
-enum damage_type {DAMAGE_UPDATE, DAMAGE_ERASE, DAMAGE_SCROLL, DAMAGE_SCROLL_REVERSE};
+enum damage_type {DAMAGE_UPDATE, DAMAGE_UPDATE_NO_SCROLL,
+ DAMAGE_ERASE, DAMAGE_ERASE_NO_SCROLL,
+ DAMAGE_SCROLL, DAMAGE_SCROLL_REVERSE};
struct damage {
enum damage_type type;
union {
@@ -40,6 +42,7 @@ struct damage {
/* DAMAGE_SCROLL, DAMAGE_SCROLL_REVERSE */
struct {
+ int offset;
int lines;
} scroll;
};