aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-27 13:25:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-27 13:25:35 +0000
commit2d7ca416f052d0b8ffa37eaf02e3ac636dc5f811 (patch)
treecc06fdddc425f3231b79772cdd70c54e70cf296f /terminal.h
parentvt: tidy lazy initialization of escape parameters (diff)
render: center grid in window
Instead of placing the upper left corner of the grid at 0,0 in the window, center it.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index d9c94b70..6f373a14 100644
--- a/terminal.h
+++ b/terminal.h
@@ -274,6 +274,8 @@ struct terminal {
int scale;
int width; /* pixels */
int height; /* pixels */
+ int x_margin;
+ int y_margin;
int cols; /* number of columns */
int rows; /* number of rows */
int cell_width; /* pixels per cell, x-wise */