alacritty / vte

Parser for virtual terminal emulators
https://docs.rs/vte/
Apache License 2.0
242 stars 56 forks source link

Different processing of cyrillic text compared to ascii #81

Open kchibisov opened 2 years ago

kchibisov commented 2 years ago

When using Крас\x1bниво only Крас is processed with input, while rest terminals(vte, xterm) output Красиво. On the other side Hello\x1bworld will process with input Hello and orld only consuming w.

chrisduerr commented 2 years ago

I've looked into this a little bit and the solution is likely to move the unicode parser table definitions from the Ground state to the Anywhere state.

I'd have to think a bit more of the concrete implications, but I don't think unicode is valid as part of any escape sequence? Though Alacritty certainly accepts in right now for URLs for example.