diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-01-07 12:00:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-01-07 12:01:21 +0000 |
| commit | 06a32d553e8d2613e3b4582199a317219f5cfc8b (patch) | |
| tree | df711b8f5dba2ee33be860e02e293d248c024b76 /osc.c | |
| parent | csi: ignore 'CSI 21 t' - report window title (diff) | |
osc: ignore 'OSC 176 ?' - report app ID
It's not widely used (don't know _any_ application that uses it), and
can be used to trick users to run unwanted commands.
Diffstat (limited to 'osc.c')
| -rw-r--r-- | osc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1498,6 +1498,7 @@ osc_dispatch(struct terminal *term) case 176: if (string[0] == '?' && string[1] == '\0') { +#if 0 /* Disabled for now, see #1894 */ const char *terminator = term->vt.osc.bel ? "\a" : "\033\\"; char *reply = xasprintf( "\033]176;%s%s", @@ -1506,6 +1507,9 @@ osc_dispatch(struct terminal *term) term_to_slave(term, reply, strlen(reply)); free(reply); +#else + LOG_WARN("OSC-176 app-id query ignored"); +#endif break; } |
