mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-17 05:33:52 -04:00
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.
This commit is contained in:
parent
42f78b7f9c
commit
8e425c4e97
1 changed files with 4 additions and 0 deletions
4
csi.c
4
csi.c
|
|
@ -1354,10 +1354,14 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
}
|
}
|
||||||
|
|
||||||
case 21: {
|
case 21: {
|
||||||
|
#if 0 /* Disabled for now, see #1894 */
|
||||||
char reply[3 + strlen(term->window_title) + 2 + 1];
|
char reply[3 + strlen(term->window_title) + 2 + 1];
|
||||||
int chars = xsnprintf(
|
int chars = xsnprintf(
|
||||||
reply, sizeof(reply), "\033]l%s\033\\", term->window_title);
|
reply, sizeof(reply), "\033]l%s\033\\", term->window_title);
|
||||||
term_to_slave(term, reply, chars);
|
term_to_slave(term, reply, chars);
|
||||||
|
#else
|
||||||
|
LOG_WARN("CSI 21 t (report window title) ignored");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue