vt: initial version of UTF-8 decoding built-in into the VT parser

This commit is contained in:
Daniel Eklöf 2020-06-07 16:16:50 +02:00
parent 0969b2ebd7
commit 9452aff020
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 134 additions and 37 deletions

View file

@ -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;