aboutsummaryrefslogtreecommitdiff
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
parent6eaec4732fdf2ffbd92de8ad90c9954ae0838888 (diff)
downloadst-patched-986670d08082c97a9fb847b9218ce504c840f0ad.tar.bz2
st-patched-986670d08082c97a9fb847b9218ce504c840f0ad.tar.xz
st-patched-986670d08082c97a9fb847b9218ce504c840f0ad.zip
add altscreen escseq alias & caps to terminfo entry. (thx Bert Münnich)
-rw-r--r--st.c6
-rw-r--r--st.info2
2 files changed, 6 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) {
1141 term.mode &= ~MODE_MOUSEMOTION; 1141 term.mode &= ~MODE_MOUSEMOTION;
1142 break; 1142 break;
1143 case 1049: /* = 1047 and 1048 */ 1143 case 1049: /* = 1047 and 1048 */
1144 case 47:
1144 case 1047: 1145 case 1047:
1145 if(IS_SET(MODE_ALTSCREEN)) { 1146 if(IS_SET(MODE_ALTSCREEN)) {
1146 tclearregion(0, 0, term.col-1, term.row-1); 1147 tclearregion(0, 0, term.col-1, term.row-1);
1147 tswapscreen(); 1148 tswapscreen();
1148 } 1149 }
1149 if(escseq.arg[0] == 1047) 1150 if(escseq.arg[0] != 1049)
1150 break; 1151 break;
1151 case 1048: 1152 case 1048:
1152 tcursor(CURSOR_LOAD); 1153 tcursor(CURSOR_LOAD);
@@ -1213,12 +1214,13 @@ csihandle(void) {
1213 term.mode |= MODE_MOUSEMOTION; 1214 term.mode |= MODE_MOUSEMOTION;
1214 break; 1215 break;
1215 case 1049: /* = 1047 and 1048 */ 1216 case 1049: /* = 1047 and 1048 */
1217 case 47:
1216 case 1047: 1218 case 1047:
1217 if(IS_SET(MODE_ALTSCREEN)) 1219 if(IS_SET(MODE_ALTSCREEN))
1218 tclearregion(0, 0, term.col-1, term.row-1); 1220 tclearregion(0, 0, term.col-1, term.row-1);
1219 else 1221 else
1220 tswapscreen(); 1222 tswapscreen();
1221 if(escseq.arg[0] == 1047) 1223 if(escseq.arg[0] != 1049)
1222 break; 1224 break;
1223 case 1048: 1225 case 1048:
1224 tcursor(CURSOR_SAVE); 1226 tcursor(CURSOR_SAVE);
diff --git a/st.info b/st.info
index 489908f..37008af 100644
--- a/st.info
+++ b/st.info
@@ -85,6 +85,7 @@ st| simpleterm,
85 rev=\E[7m, 85 rev=\E[7m,
86 ri=\EM, 86 ri=\EM,
87 rmacs=\E(B, 87 rmacs=\E(B,
88 rmcup=\E[?1049l,
88 rmso=\E[m, 89 rmso=\E[m,
89 rmul=\E[m, 90 rmul=\E[m,
90 sc=\E7, 91 sc=\E7,
@@ -93,6 +94,7 @@ st| simpleterm,
93 sgr0=\E[0m, 94 sgr0=\E[0m,
94 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, 95 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,
95 smacs=\E(0, 96 smacs=\E(0,
97 smcup=\E[?1049h,
96 smso=\E[7m, 98 smso=\E[7m,
97 smul=\E[4m, 99 smul=\E[4m,
98 tbc=\E[2g, 100 tbc=\E[2g,