mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
add altscreen escseq alias & caps to terminfo entry. (thx Bert Münnich)
This commit is contained in:
parent
9b404c0dfb
commit
189a81caa1
2 changed files with 6 additions and 2 deletions
6
st.c
6
st.c
|
@ -1141,12 +1141,13 @@ csihandle(void) {
|
||||||
term.mode &= ~MODE_MOUSEMOTION;
|
term.mode &= ~MODE_MOUSEMOTION;
|
||||||
break;
|
break;
|
||||||
case 1049: /* = 1047 and 1048 */
|
case 1049: /* = 1047 and 1048 */
|
||||||
|
case 47:
|
||||||
case 1047:
|
case 1047:
|
||||||
if(IS_SET(MODE_ALTSCREEN)) {
|
if(IS_SET(MODE_ALTSCREEN)) {
|
||||||
tclearregion(0, 0, term.col-1, term.row-1);
|
tclearregion(0, 0, term.col-1, term.row-1);
|
||||||
tswapscreen();
|
tswapscreen();
|
||||||
}
|
}
|
||||||
if(escseq.arg[0] == 1047)
|
if(escseq.arg[0] != 1049)
|
||||||
break;
|
break;
|
||||||
case 1048:
|
case 1048:
|
||||||
tcursor(CURSOR_LOAD);
|
tcursor(CURSOR_LOAD);
|
||||||
|
@ -1213,12 +1214,13 @@ csihandle(void) {
|
||||||
term.mode |= MODE_MOUSEMOTION;
|
term.mode |= MODE_MOUSEMOTION;
|
||||||
break;
|
break;
|
||||||
case 1049: /* = 1047 and 1048 */
|
case 1049: /* = 1047 and 1048 */
|
||||||
|
case 47:
|
||||||
case 1047:
|
case 1047:
|
||||||
if(IS_SET(MODE_ALTSCREEN))
|
if(IS_SET(MODE_ALTSCREEN))
|
||||||
tclearregion(0, 0, term.col-1, term.row-1);
|
tclearregion(0, 0, term.col-1, term.row-1);
|
||||||
else
|
else
|
||||||
tswapscreen();
|
tswapscreen();
|
||||||
if(escseq.arg[0] == 1047)
|
if(escseq.arg[0] != 1049)
|
||||||
break;
|
break;
|
||||||
case 1048:
|
case 1048:
|
||||||
tcursor(CURSOR_SAVE);
|
tcursor(CURSOR_SAVE);
|
||||||
|
|
2
st.info
2
st.info
|
@ -85,6 +85,7 @@ st| simpleterm,
|
||||||
rev=\E[7m,
|
rev=\E[7m,
|
||||||
ri=\EM,
|
ri=\EM,
|
||||||
rmacs=\E(B,
|
rmacs=\E(B,
|
||||||
|
rmcup=\E[?1049l,
|
||||||
rmso=\E[m,
|
rmso=\E[m,
|
||||||
rmul=\E[m,
|
rmul=\E[m,
|
||||||
sc=\E7,
|
sc=\E7,
|
||||||
|
@ -93,6 +94,7 @@ st| simpleterm,
|
||||||
sgr0=\E[0m,
|
sgr0=\E[0m,
|
||||||
sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
|
sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
|
||||||
smacs=\E(0,
|
smacs=\E(0,
|
||||||
|
smcup=\E[?1049h,
|
||||||
smso=\E[7m,
|
smso=\E[7m,
|
||||||
smul=\E[4m,
|
smul=\E[4m,
|
||||||
tbc=\E[2g,
|
tbc=\E[2g,
|
||||||
|
|
Loading…
Reference in a new issue