all repos — st @ b11d85c9bef5a49c071553410c3f73c3181c6ece

st (suckless terminal) config

Add standout mode.
Christoph Lohmann 20h@r-36.net
commit

b11d85c9bef5a49c071553410c3f73c3181c6ece

parent

7f17a70834961cd1ff748b2621c6fc87c069be22

2 files changed, 9 insertions(+), 3 deletions(-)

jump to
M st.cst.c

@@ -1104,6 +1104,9 @@ break;

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;

@@ -1112,6 +1115,9 @@ term.c.attr.mode |= ATTR_REVERSE;

break; 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;

@@ -1441,7 +1447,7 @@ * TODO: make this being useful in case of color palette change.

*/ strparse(); - p = strescseq.buf; + p = strescseq.buf; switch(strescseq.type) { case ']': /* OSC -- Operating System Command */
M st.infost.info

@@ -86,7 +86,7 @@ rev=\E[7m,

ri=\EM, rmacs=\E(B, rmcup=\E[?1049l, - rmso=\E[m, + rmso=\E[23m, rmul=\E[m, sc=\E7, setab=\E[4%p1%dm,

@@ -97,7 +97,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, + smso=\E[3m, smul=\E[4m, tbc=\E[3g, tsl=\E]0;,