diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-06-29 19:23:36 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-06-29 19:30:54 +0000 |
| commit | 0f48b4f8f70b10c48f934d4354ed15dd0ed5cb70 (patch) | |
| tree | 1688f7cea1dc044629cc423bbfb936a245f61fe1 /terminal.h | |
| parent | terminal: move print_needs_wrap from grid to terminal (diff) | |
terminal: prepare for floating grids
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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); |
