aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-13 11:34:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-21 19:14:51 +0000
commit841e5f0e50a65bc4787ba06a642355cf4fb514a5 (patch)
treeae12f59686fc79d005e092e4ae138941ee6f6fb5 /terminal.h
parentgrid: enable rows to have ‘extra’ data associated with them (diff)
terminal: add OSC-8 state tracking to the VT sub-struct
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 7df92efc..3f58180b 100644
--- a/terminal.h
+++ b/terminal.h
@@ -155,12 +155,24 @@ struct vt {
struct vt_param v[16];
uint8_t idx;
} params;
+
uint32_t private; /* LSB=priv0, MSB=priv3 */
+
+ struct attributes attrs;
+ struct attributes saved_attrs;
+
struct {
uint8_t *data;
size_t size;
size_t idx;
} osc;
+
+ /* Start coordinate for current OSC-8 URI */
+ struct {
+ struct coord begin;
+ char *uri;
+ } osc8;
+
struct {
uint8_t *data;
size_t size;
@@ -168,8 +180,6 @@ struct vt {
void (*put_handler)(struct terminal *term, uint8_t c);
void (*unhook_handler)(struct terminal *term);
} dcs;
- struct attributes attrs;
- struct attributes saved_attrs;
};
enum cursor_origin { ORIGIN_ABSOLUTE, ORIGIN_RELATIVE };