update to 0.8.5 (apply patch st-csi_22_23-0.8.5.diff)

This commit is contained in:
wael
2022-04-11 21:28:43 +03:00
committed by Łukasz Pankowski
parent 01873515e4
commit f37ea1f018
4 changed files with 74 additions and 9 deletions

36
st.c
View File

@@ -1928,6 +1928,33 @@ csihandle(void)
goto unknown;
}
break;
case 't': /* title stack operations */
switch (csiescseq.arg[0]) {
case 22: /* pust 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;
}
}
}
@@ -2006,7 +2033,7 @@ strhandle(void)
switch (par) {
case 0:
if (narg > 1) {
xsettitle(strescseq.args[1]);
xsettitle(strescseq.args[1], 0);
xseticontitle(strescseq.args[1]);
}
return;
@@ -2016,7 +2043,7 @@ strhandle(void)
return;
case 2:
if (narg > 1)
xsettitle(strescseq.args[1]);
xsettitle(strescseq.args[1], 0);
return;
case 52: /* manipulate selection data */
if (narg > 2 && allowwindowops) {
@@ -2088,7 +2115,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 */
@@ -2565,6 +2592,7 @@ eschandle(uchar ascii)
break;
case 'c': /* RIS -- Reset to initial state */
treset();
xfreetitlestack();
resettitle();
xloadcols();
xsetmode(0, MODE_HIDE);
@@ -2867,7 +2895,7 @@ tresize(int col, int row)
void
resettitle(void)
{
xsettitle(NULL);
xsettitle(NULL, 0);
}
void