aboutsummaryrefslogtreecommitdiff
path: root/grid.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 /grid.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 'grid.h')
-rw-r--r--grid.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/grid.h b/grid.h
index e208a603..1951f54f 100644
--- a/grid.h
+++ b/grid.h
@@ -5,7 +5,8 @@
void grid_damage_update(struct grid *grid, int start, int length);
void grid_damage_erase(struct grid *grid, int start, int length);
void grid_damage_scroll(
- struct grid *grid, int top_margin, int bottom_margin, int lines);
+ struct grid *grid, enum damage_type damage_type,
+ int top_margin, int bottom_margin, int lines);
void grid_erase(struct grid *grid, int start, int end);
@@ -16,6 +17,7 @@ void grid_cursor_up(struct grid *grid, int count);
void grid_cursor_down(struct grid *grid, int count);
void grid_scroll(struct grid *grid, int rows);
+void grid_scroll_reverse(struct grid *grid, int rows);
int grid_cursor_linear(const struct grid *grid, int row, int col);