terminal: prepare for floating grids

This commit is contained in:
Daniel Eklöf 2019-06-29 21:23:36 +02:00
parent 8cff861f38
commit 0f48b4f8f7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 69 additions and 63 deletions

View file

@ -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);