aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-05 07:46:48 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-05 07:50:35 +0000
commit3ba1721c0f8b962466bb2d68d3adccdeb60ff915 (patch)
treeff2fef017ba4990a2f6bf400631aa19db7c14a2f /terminal.h
parentrender: bump number of glyphs we can render in a single call (diff)
osc: implement change window title and icon
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/terminal.h b/terminal.h
index 9349de01..b65216bb 100644
--- a/terminal.h
+++ b/terminal.h
@@ -74,7 +74,7 @@ struct grid {
struct vt_subparams {
unsigned value[16];
- int idx;
+ size_t idx;
};
struct vt_param {
@@ -86,20 +86,20 @@ struct vt {
int state; /* enum state */
struct {
struct vt_param v[16];
- int idx;
+ size_t idx;
} params;
struct {
uint8_t data[2];
- int idx;
+ size_t idx;
} intermediates;
struct {
uint8_t data[1024];
- int idx;
+ size_t idx;
} osc;
struct {
uint8_t data[4];
- int idx;
- int left;
+ size_t idx;
+ size_t left;
} utf8;
struct attributes attrs;
struct attributes saved_attrs;
@@ -125,6 +125,10 @@ struct kbd {
} repeat;
};
+struct renderer {
+ struct xdg_toplevel *xdg_toplevel; /* TODO: this doesn't belong here */
+};
+
enum decckm { DECCKM_CSI, DECCKM_SS3 };
enum keypad_mode { KEYPAD_NUMERICAL, KEYPAD_APPLICATION };
enum charset { CHARSET_ASCII, CHARSET_GRAPHIC };
@@ -145,6 +149,7 @@ struct terminal {
struct vt vt;
struct kbd kbd;
+ struct renderer renderer;
int cols;
int rows;