aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:23:36 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:30:54 +0000
commit0f48b4f8f70b10c48f934d4354ed15dd0ed5cb70 (patch)
tree1688f7cea1dc044629cc423bbfb936a245f61fe1 /terminal.h
parentterminal: move print_needs_wrap from grid to terminal (diff)
terminal: prepare for floating grids
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/terminal.h b/terminal.h
index 5fb30e77..cceaa6b6 100644
--- a/terminal.h
+++ b/terminal.h
@@ -62,9 +62,10 @@ struct damage {
};
struct grid {
+ size_t size;
+ size_t offset;
+
struct cell *cells;
- struct cell *normal_grid;
- struct cell *alt_grid;
tll(struct damage) damage;
tll(struct damage) scroll_damage;
@@ -134,7 +135,6 @@ struct terminal {
bool bracketed_paste;
struct vt vt;
- struct grid grid;
struct kbd kbd;
int cols;
@@ -151,6 +151,10 @@ struct terminal {
struct cursor cursor;
struct cursor saved_cursor;
struct cursor alt_saved_cursor;
+
+ struct grid normal;
+ struct grid alt;
+ struct grid *grid;
};
void term_damage_all(struct terminal *term);