diff options
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |