aboutsummaryrefslogtreecommitdiff
path: root/grid.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-19 12:17:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-19 12:17:43 +0000
commit304f15d696ad544bbd90a1e54e547e4e2fbe42c5 (patch)
treedea6898d9f7e7940eb30488777582f90d052f554 /grid.h
parentcsi: dummy implementation of bright foreground/background colors (diff)
Use a 'damage' list to communicate what needs to be updated
Instead of having each cell in the grid track it's own dirtiness, grid operations now append "damage" to a list. This list is consumed every time we render the grid. This allows us to special case some operations, like erase (and in the future, scroll).
Diffstat (limited to 'grid.h')
-rw-r--r--grid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/grid.h b/grid.h
index 5b016830..e8abbd89 100644
--- a/grid.h
+++ b/grid.h
@@ -2,6 +2,9 @@
#include "terminal.h"
+void grid_damage_update(struct grid *grid, int start, int length);
+void grid_damage_erase(struct grid *grid, int start, int length);
+
void grid_erase(struct grid *grid, int start, int end);
void grid_cursor_to(struct grid *grid, int row, int col);