aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:08:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:08:08 +0000
commit3d2ab03f6220e967796e6d885946c916cae9e238 (patch)
tree7c52a2db9b39163c5ae81fa400ad8ba3bf970c37 /terminal.h
parentRename grid_* functions to term_* (diff)
terminal: move col/row count, cell width/height and scroll region to terminal
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/terminal.h b/terminal.h
index 1a2fe8af..85b1828f 100644
--- a/terminal.h
+++ b/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);