terminal: move col/row count, cell width/height and scroll region to terminal

This commit is contained in:
Daniel Eklöf 2019-06-29 21:08:08 +02:00
parent 1ecd4a6ae1
commit 3d2ab03f62
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 111 additions and 110 deletions

View file

@ -56,13 +56,6 @@ struct damage {
};
struct grid {
int cols;
int rows;
int cell_width;
int cell_height;
struct scroll_region scroll_region;
int linear_cursor;
struct {
int row;
@ -151,6 +144,14 @@ struct terminal {
struct vt vt;
struct grid grid;
struct kbd kbd;
int cols;
int rows;
int cell_width;
int cell_height;
struct scroll_region scroll_region;
};
void term_damage_all(struct terminal *term);