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