From 9452aff0208f62716304022f4496bafbebdf50e9 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 7 Jun 2020 16:16:50 +0200 Subject: vt: initial version of UTF-8 decoding built-in into the VT parser --- terminal.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index eecebbf6..798307cb 100644 --- a/terminal.h +++ b/terminal.h @@ -130,6 +130,7 @@ struct vt_param { struct vt { int state; /* enum state */ wchar_t last_printed; + wchar_t utf8; struct { struct vt_param v[16]; uint8_t idx; @@ -140,10 +141,6 @@ struct vt { size_t size; size_t idx; } osc; - struct { - uint8_t data[4]; - uint8_t idx; - } utf8; struct { uint8_t *data; size_t size; -- cgit v1.3