diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-01-07 11:58:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-01-18 08:23:33 +0000 |
| commit | a62194caee739c9e3b60def25008c3c8447aaa8e (patch) | |
| tree | 4e45d16a3afd201132af7c528c38d0619ab52a0f | |
| parent | ci: "meson [options]" is deprecated (do "meson setup [options]" instead) (diff) | |
csi: ignore 'CSI 21 t' - report window title
It's not widely used (don't know _any_ application that uses it), and
can be used to trick users to run unwanted commands.
| -rw-r--r-- | csi.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1354,10 +1354,14 @@ csi_dispatch(struct terminal *term, uint8_t final) } case 21: { +#if 0 /* Disabled for now, see #1894 */ char reply[3 + strlen(term->window_title) + 2 + 1]; int chars = xsnprintf( reply, sizeof(reply), "\033]l%s\033\\", term->window_title); term_to_slave(term, reply, chars); +#else + LOG_WARN("CSI 21 t (report window title) ignored"); +#endif break; } |
