From 189a81caa11a278079fde3e610870e07870d8968 Mon Sep 17 00:00:00 2001 From: Aurélien Aptel Date: Wed, 8 Jun 2011 20:22:38 +0200 Subject: add altscreen escseq alias & caps to terminfo entry. (thx Bert Münnich) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- st.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'st.c') 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); -- cgit v1.2.3-70-g09d2