From 189a81caa11a278079fde3e610870e07870d8968 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aur=C3=A9lien=20Aptel?= Date: Wed, 8 Jun 2011 20:22:38 +0200 Subject: [PATCH] =?utf8?q?add=20altscreen=20escseq=20alias=20&=20caps=20to?= =?utf8?q?=20terminfo=20entry.=20(thx=20Bert=20M=C3=BCnnich)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- st.c | 6 ++++-- st.info | 2 ++ 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) { 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); diff --git a/st.info b/st.info index 489908f..37008af 100644 --- a/st.info +++ b/st.info @@ -85,6 +85,7 @@ st| simpleterm, rev=\E[7m, ri=\EM, rmacs=\E(B, + rmcup=\E[?1049l, rmso=\E[m, rmul=\E[m, sc=\E7, @@ -93,6 +94,7 @@ st| simpleterm, 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, smacs=\E(0, + smcup=\E[?1049h, smso=\E[7m, smul=\E[4m, tbc=\E[2g, -- 2.20.1