aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-01 18:24:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-01 18:24:46 +0000
commitf13adf50dcbbf94da32c271fe38253113ba61d41 (patch)
tree001c3b18c9604abd66bd69d11d900c53d9c8d167 /terminal.h
parentdcs: fix comment: ESU is *End* synchronized update (diff)
vt: use 8-bit indices for parameters and sub parameters
We only support 16 (sub) parameters and thus there's no need for 64-bit index variables.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/terminal.h b/terminal.h
index 3bc8bd22..b9db2bfe 100644
--- a/terminal.h
+++ b/terminal.h
@@ -100,7 +100,7 @@ struct grid {
struct vt_subparams {
unsigned value[16];
- size_t idx;
+ uint8_t idx;
};
struct vt_param {
@@ -113,7 +113,7 @@ struct vt {
wchar_t last_printed;
struct {
struct vt_param v[16];
- size_t idx;
+ uint8_t idx;
} params;
char private[2];
struct {
@@ -123,8 +123,8 @@ struct vt {
} osc;
struct {
uint8_t data[4];
- size_t idx;
- size_t left;
+ uint8_t idx;
+ uint8_t left;
} utf8;
struct {
uint8_t *data;