[hackers] [st] add altscreen escseq alias & caps to terminfo entry. (thx Bert Münnich) || Aurélien Aptel

From: <hg_AT_suckless.org>
Date: Wed, 8 Jun 2011 20:26:09 +0200 (CEST)

changeset: 202:0f21f57006c9
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Wed Jun 08 20:22:38 2011 +0200
files: st.c st.info
description:
add altscreen escseq alias & caps to terminfo entry. (thx Bert Münnich)

diff -r 8a374ea5d4ec -r 0f21f57006c9 st.c
--- a/st.c Wed Jun 08 19:32:10 2011 +0200
+++ b/st.c Wed Jun 08 20:22:38 2011 +0200
@@ -1141,12 +1141,13 @@
                                 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 @@
                                 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 -r 8a374ea5d4ec -r 0f21f57006c9 st.info
--- a/st.info Wed Jun 08 19:32:10 2011 +0200
+++ b/st.info Wed Jun 08 20:22:38 2011 +0200
@@ -85,6 +85,7 @@
         rev=\E[7m,
         ri=\EM,
         rmacs=\E(B,
+ rmcup=\E[?1049l,
         rmso=\E[m,
         rmul=\E[m,
         sc=\E7,
@@ -93,6 +94,7 @@
         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,
Received on Wed Jun 08 2011 - 20:26:09 CEST

This archive was generated by hypermail 2.2.0 : Wed Jun 08 2011 - 20:36:07 CEST