1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-08 08:58:00 +00:00

Treat SOS and PM terminal escape sequences like APC

SOS (Start of string) and PM (privacy message) are opening delimiters defined
in ECMA-48 similar to APC. With this change they are treated exactly like APC,
i.e., like fake OSC sequences that are ignored and not printed.

Signed-off-by: Stefan Tauner <stefan.tauner@artech.at>
This commit is contained in:
Stefan Tauner 2024-12-22 02:38:42 +01:00 committed by Simon Tatham
parent 98200d1bfe
commit b6b95f23e5

View File

@ -4127,9 +4127,11 @@ static void term_out(Terminal *term, bool called_from_term_data)
term->esc_args[0] = 0;
term->esc_nargs = 1;
break;
case 'X': /* SOS: Start of String */
case '^': /* PM: privacy message */
case '_': /* APC: application program command */
/* APC sequences are just a string, terminated by
* ST or (I've observed in practice) ^G. That is,
/* SOS, PM, and APC sequences are just a string, terminated by
* ST or (I've observed in practice for APC) ^G. That is,
* they have the same termination convention as
* OSC. So we handle them by going straight into
* OSC_STRING state and setting a flag indicating