aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md7
-rw-r--r--csi.c4
-rw-r--r--doc/foot-ctlseqs.7.scd3
-rw-r--r--osc.c4
4 files changed, 15 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f98908fe..bc1d3bc3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -60,6 +60,13 @@
## Unreleased
### Added
### Changed
+
+* The `CSI 21 t` (report window title) and `OSC 176 ?` (report app-id)
+ escape sequences are now ignored ([#1894][1894]).
+
+[1894]: https://codeberg.org/dnkl/foot/issues/1894
+
+
### Deprecated
### Removed
### Fixed
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;
}
diff --git a/doc/foot-ctlseqs.7.scd b/doc/foot-ctlseqs.7.scd
index 60f78d83..f8eb1222 100644
--- a/doc/foot-ctlseqs.7.scd
+++ b/doc/foot-ctlseqs.7.scd
@@ -391,9 +391,6 @@ manipulation sequences. The generic format is:
| 20
: -
: Report icon label.
-| 21
-: -
-: Report window title.
| 22
: -
: Push window title+icon.
diff --git a/osc.c b/osc.c
index 17639c19..e335dc61 100644
--- a/osc.c
+++ b/osc.c
@@ -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;
}