From 0f48b4f8f70b10c48f934d4354ed15dd0ed5cb70 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 29 Jun 2019 21:23:36 +0200 Subject: terminal: prepare for floating grids --- terminal.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'terminal.h') 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); -- cgit v1.3