aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2011-06-08 20:22:38 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2011-06-08 20:22:38 +0200
commit986670d08082c97a9fb847b9218ce504c840f0ad (patch)
tree861cdfb24cdac049db0b99d661a9b2818cc9abe5 /st.c
parent6eaec4732fdf2ffbd92de8ad90c9954ae0838888 (diff)
downloadst-986670d08082c97a9fb847b9218ce504c840f0ad.tar.gz
st-986670d08082c97a9fb847b9218ce504c840f0ad.tar.bz2
add altscreen escseq alias & caps to terminfo entry. (thx Bert Münnich)
Diffstat (limited to 'st.c')
-rw-r--r--st.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/st.c b/st.c
index e705fca..bc17df3 100644
--- a/st.c
+++ b/st.c
@@ -1141,12 +1141,13 @@ csihandle(void) {
term.mode &= ~MODE_MOUSEMOTION;
break;
case 1049: /* = 1047 and 1048 */
+ case 47:
case 1047:
if(IS_SET(MODE_ALTSCREEN)) {
tclearregion(0, 0, term.col-1, term.row-1);
tswapscreen();
}
- if(escseq.arg[0] == 1047)
+ if(escseq.arg[0] != 1049)
break;
case 1048:
tcursor(CURSOR_LOAD);
@@ -1213,12 +1214,13 @@ csihandle(void) {
term.mode |= MODE_MOUSEMOTION;
break;
case 1049: /* = 1047 and 1048 */
+ case 47:
case 1047:
if(IS_SET(MODE_ALTSCREEN))
tclearregion(0, 0, term.col-1, term.row-1);
else
tswapscreen();
- if(escseq.arg[0] == 1047)
+ if(escseq.arg[0] != 1049)
break;
case 1048:
tcursor(CURSOR_SAVE);