aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-01-07 11:58:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-01-07 12:01:15 +0000
commit8e425c4e976017c09ed2a9b4402067b3595501cc (patch)
tree4e45d16a3afd201132af7c528c38d0619ab52a0f
parentci: "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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index 35a39f82..61cbdced 100644
--- a/csi.c
+++ b/csi.c
@@ -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;
}