91861 / wayst

A simple terminal emulator
MIT License
287 stars 9 forks source link

Complex SGR parsing issue #31

Closed mawww closed 4 years ago

mawww commented 4 years ago

the following gets parsed incorrectly: CSI ;4;38;2;184;187;38;48;2;62;62;62 m and leads to the following output:

[warning] Unknown SGR code: 38
[warning] Unknown SGR code: 235
[warning] Unknown SGR code: 219
[warning] Unknown SGR code: 178

This is due to vt.c line 2078 that decides to parse 38 with Vt_handle_SGR_code because args[0] is ;4.