mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
commit
25cd5dae26
4 changed files with 15 additions and 3 deletions
|
|
@ -60,6 +60,13 @@
|
||||||
## Unreleased
|
## Unreleased
|
||||||
### Added
|
### Added
|
||||||
### Changed
|
### 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
|
### Deprecated
|
||||||
### Removed
|
### Removed
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -391,9 +391,6 @@ manipulation sequences. The generic format is:
|
||||||
| 20
|
| 20
|
||||||
: -
|
: -
|
||||||
: Report icon label.
|
: Report icon label.
|
||||||
| 21
|
|
||||||
: -
|
|
||||||
: Report window title.
|
|
||||||
| 22
|
| 22
|
||||||
: -
|
: -
|
||||||
: Push window title+icon.
|
: Push window title+icon.
|
||||||
|
|
|
||||||
4
osc.c
4
osc.c
|
|
@ -1498,6 +1498,7 @@ osc_dispatch(struct terminal *term)
|
||||||
|
|
||||||
case 176:
|
case 176:
|
||||||
if (string[0] == '?' && string[1] == '\0') {
|
if (string[0] == '?' && string[1] == '\0') {
|
||||||
|
#if 0 /* Disabled for now, see #1894 */
|
||||||
const char *terminator = term->vt.osc.bel ? "\a" : "\033\\";
|
const char *terminator = term->vt.osc.bel ? "\a" : "\033\\";
|
||||||
char *reply = xasprintf(
|
char *reply = xasprintf(
|
||||||
"\033]176;%s%s",
|
"\033]176;%s%s",
|
||||||
|
|
@ -1506,6 +1507,9 @@ osc_dispatch(struct terminal *term)
|
||||||
|
|
||||||
term_to_slave(term, reply, strlen(reply));
|
term_to_slave(term, reply, strlen(reply));
|
||||||
free(reply);
|
free(reply);
|
||||||
|
#else
|
||||||
|
LOG_WARN("OSC-176 app-id query ignored");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue