Commit 594d60cd authored by Committed by Tomaz CanabravaBrowse files
VT parser: Support chars >= 0xA0 in OSC parser
Add support in the new parser for chars >= 0xa0 in OSC, DCS, APC, PM, SOS. This allows OSC 8 to support non ASCII URLs: printf '\e]8;;https://example.com/naïve\e\\Link to naïve\e]8;;\e\\\n' Note that while «Williams, Paul Flo. “A parser for DEC’s ANSI-compatible video terminals.” VT100.net. https://vt100.net/emu/dec_ansi_parser» treats codes A0-FF identically to codes 20-7F, this does not seem to be typical in terminal emulators: only xterm seems to follow this peculiarity of DEC VTs, which allows: printf '\e[4\xedtest\e[0m\n' to be treated as if it had an "m" instead of "\xed", and shows an underscored "test" in VT102, VT240, and xterm +u8 (use "\xc3\xad" for xterm -u8).