csi: revert implementation of CSI 20 t

This commit is contained in:
Daniel Eklöf 2024-09-13 08:57:07 +02:00
parent 7984f08925
commit 9151685d04
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

11
csi.c
View file

@ -1249,6 +1249,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
case 8: LOG_WARN("unimplemented: resize window in chars"); break;
case 9: LOG_WARN("unimplemented: maximize/unmaximize window"); break;
case 10: LOG_WARN("unimplemented: to/from full screen"); break;
case 20: LOG_WARN("unimplemented: report icon label"); break;
case 24: LOG_WARN("unimplemented: resize window (DECSLPP)"); break;
case 11: /* report if window is iconified */
@ -1352,16 +1353,6 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
case 20: {
const char *icon = term_icon(term);
char reply[3 + strlen(icon) + 2 + 1];
int chars = xsnprintf(
reply, sizeof(reply), "\033]L%s\033\\", icon);
term_to_slave(term, reply, chars);
break;
}
case 21: {
char reply[3 + strlen(term->window_title) + 2 + 1];
int chars = xsnprintf(