Add support for the xterm(1) title stack, from Brad Town, GitHub issue

1075.
This commit is contained in:
nicm
2017-10-05 13:29:18 +00:00
parent 6a292f09ba
commit 88517ceebb
3 changed files with 95 additions and 2 deletions

25
input.c
View File

@ -1693,12 +1693,33 @@ input_csi_dispatch_winops(struct input_ctx *ictx)
/* FALLTHROUGH */
case 9:
case 10:
case 22:
case 23:
m++;
if (input_get(ictx, m, 0, -1) == -1)
return;
break;
case 22:
m++;
switch (input_get(ictx, m, 0, -1)) {
case -1:
return;
case 0:
case 2:
screen_push_title(ictx->ctx.s);
break;
}
break;
case 23:
m++;
switch (input_get(ictx, m, 0, -1)) {
case -1:
return;
case 0:
case 2:
screen_pop_title(ictx->ctx.s);
server_status_window(ictx->wp->window);
break;
}
break;
case 18:
input_reply(ictx, "\033[8;%u;%ut", wp->sy, wp->sx);
break;