[hackers] [st] Add standout mode. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Sun, 2 Sep 2012 19:55:58 +0200 (CEST)

changeset: 261:866dc7edd5f8
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Sun Sep 02 19:53:50 2012 +0200
files: st.c st.info
description:
Add standout mode.


diff -r dfa441b174d3 -r 866dc7edd5f8 st.c
--- a/st.c Sun Sep 02 19:43:29 2012 +0200
+++ b/st.c Sun Sep 02 19:53:50 2012 +0200
_AT_@ -1104,6 +1104,9 @@
                 case 1:
                         term.c.attr.mode |= ATTR_BOLD;
                         break;
+ case 3: /* enter standout (highlight) mode TODO: make it italic */
+ term.c.attr.mode |= ATTR_REVERSE;
+ break;
                 case 4:
                         term.c.attr.mode |= ATTR_UNDERLINE;
                         break;
_AT_@ -1113,6 +1116,9 @@
                 case 22:
                         term.c.attr.mode &= ~ATTR_BOLD;
                         break;
+ case 23: /* leave standout (highlight) mode TODO: make it italic */
+ term.c.attr.mode &= ~ATTR_REVERSE;
+ break;
                 case 24:
                         term.c.attr.mode &= ~ATTR_UNDERLINE;
                         break;
_AT_@ -1441,7 +1447,7 @@
          */
         strparse();
 
- p = strescseq.buf;
+ p = strescseq.buf;
 
         switch(strescseq.type) {
         case ']': /* OSC -- Operating System Command */
diff -r dfa441b174d3 -r 866dc7edd5f8 st.info
--- a/st.info Sun Sep 02 19:43:29 2012 +0200
+++ b/st.info Sun Sep 02 19:53:50 2012 +0200
_AT_@ -86,7 +86,7 @@
         ri=\EM,
         rmacs=\E(B,
         rmcup=\E[?1049l,
- rmso=\E[m,
+ rmso=\E[23m,
         rmul=\E[m,
         sc=\E7,
         setab=\E[4%p1%dm,
_AT_@ -97,7 +97,7 @@
         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,
+ smso=\E[3m,
         smul=\E[4m,
         tbc=\E[3g,
         tsl=\E]0;,
Received on Sun Sep 02 2012 - 19:55:58 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 02 2012 - 20:00:09 CEST