From 2fe7145aff1cf710fc00519a0f72199c3fa0a929 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 23 Jun 2019 21:12:32 +0200 Subject: scrolling region: wip --- terminal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'terminal.h') 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; }; -- cgit v1.3