From fbf0db621cb29804e67af850c1646c3185464dcb Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 23 Jun 2019 17:16:52 +0200 Subject: 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... --- terminal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'terminal.h') 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; -- cgit v1.3