mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
terminal: move col/row count, cell width/height and scroll region to terminal
This commit is contained in:
parent
1ecd4a6ae1
commit
3d2ab03f62
5 changed files with 111 additions and 110 deletions
15
terminal.h
15
terminal.h
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue