aboutsummaryrefslogtreecommitdiff
path: root/grid.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-01 10:23:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-01 10:23:38 +0000
commitd70956da08c987af639fd8e03e669ca59c4c542b (patch)
tree45010a108850fc3e40970b2b4a8f5faeaf180f07 /grid.h
parentvt: only prep logging of CSI/ESC parameters when debug logging is enabled (diff)
wip: use a sliding window instead of memmove() to scroll
Instead of memmoving a large amount of data on every scroll, use a sliding window. That is, each time we scroll, we offset origin.
Diffstat (limited to 'grid.h')
-rw-r--r--grid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/grid.h b/grid.h
index 580ef343..3a5f3f4b 100644
--- a/grid.h
+++ b/grid.h
@@ -1,3 +1,7 @@
#pragma once
+#include <stddef.h>
#include "terminal.h"
+
+struct cell *grid_get_range(struct grid *grid, size_t start, size_t *length);
+void grid_memset(struct grid *grid, size_t start, int c, size_t length);