diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-05 07:46:48 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-05 07:50:35 +0000 |
| commit | 3ba1721c0f8b962466bb2d68d3adccdeb60ff915 (patch) | |
| tree | ff2fef017ba4990a2f6bf400631aa19db7c14a2f /terminal.h | |
| parent | render: 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.h | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -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; |
