mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-31 02:32:49 -05:00

[ECMA-48] section 8.3.27 specifies the format of Device Control String (DCS) commands which are used for XTGETTCAP and other sequences. We don't parse DCS commands. This causes this command to wrongly output some characters: printf '\033P+q616d\033\\' Fix that by parsing DCS commands just like other OSC-like commands. (Apart from the initial characters, DCS has the same format as OSC.) We also allow 0x07 as sequence terminator which does not seem specified but a lot of people use it with OSC; it's fine because 0x07 is not allowed in the OSC/DCS payload. [ECMA-48]: https://www.ecma-international.org/wp-content/uploads/ECMA-48_2nd_edition_august_1979.pdf