|
|
|
@ -1864,6 +1864,33 @@ csihandle(void)
|
|
|
|
|
goto unknown;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 't': /* title stack operations */
|
|
|
|
|
switch (csiescseq.arg[0]) {
|
|
|
|
|
case 22: /* push current title on stack */
|
|
|
|
|
switch (csiescseq.arg[1]) {
|
|
|
|
|
case 0:
|
|
|
|
|
case 1:
|
|
|
|
|
case 2:
|
|
|
|
|
xpushtitle();
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
goto unknown;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 23: /* pop last title from stack */
|
|
|
|
|
switch (csiescseq.arg[1]) {
|
|
|
|
|
case 0:
|
|
|
|
|
case 1:
|
|
|
|
|
case 2:
|
|
|
|
|
xsettitle(NULL, 1);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
goto unknown;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
goto unknown;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1942,7 +1969,7 @@ strhandle(void)
|
|
|
|
|
switch (par) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (narg > 1) {
|
|
|
|
|
xsettitle(strescseq.args[1]);
|
|
|
|
|
xsettitle(strescseq.args[1], 0);
|
|
|
|
|
xseticontitle(strescseq.args[1]);
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
@ -1952,7 +1979,7 @@ strhandle(void)
|
|
|
|
|
return;
|
|
|
|
|
case 2:
|
|
|
|
|
if (narg > 1)
|
|
|
|
|
xsettitle(strescseq.args[1]);
|
|
|
|
|
xsettitle(strescseq.args[1], 0);
|
|
|
|
|
return;
|
|
|
|
|
case 52:
|
|
|
|
|
if (narg > 2 && allowwindowops) {
|
|
|
|
@ -2007,7 +2034,7 @@ strhandle(void)
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 'k': /* old title set compatibility */
|
|
|
|
|
xsettitle(strescseq.args[0]);
|
|
|
|
|
xsettitle(strescseq.args[0], 0);
|
|
|
|
|
return;
|
|
|
|
|
case 'P': /* DCS -- Device Control String */
|
|
|
|
|
case '_': /* APC -- Application Program Command */
|
|
|
|
@ -2379,6 +2406,7 @@ eschandle(uchar ascii)
|
|
|
|
|
break;
|
|
|
|
|
case 'c': /* RIS -- Reset to initial state */
|
|
|
|
|
treset();
|
|
|
|
|
xfreetitlestack();
|
|
|
|
|
resettitle();
|
|
|
|
|
xloadcols();
|
|
|
|
|
break;
|
|
|
|
@ -2673,7 +2701,7 @@ tresize(int col, int row)
|
|
|
|
|
void
|
|
|
|
|
resettitle(void)
|
|
|
|
|
{
|
|
|
|
|
xsettitle(NULL);
|
|
|
|
|
xsettitle(NULL, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|