Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
7f17a70
)
Add standout mode.
author
Christoph Lohmann <
[email protected]
>
Sun, 2 Sep 2012 17:53:50 +0000
(19:53 +0200)
committer
Christoph Lohmann <
[email protected]
>
Sun, 2 Sep 2012 17:53:50 +0000
(19:53 +0200)
st.c
patch
|
blob
|
history
st.info
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
8e1afe2
..
bd230a3
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1104,6
+1104,9
@@
tsetattr(int *attr, int l) {
case 1:
term.c.attr.mode |= ATTR_BOLD;
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;
case 4:
term.c.attr.mode |= ATTR_UNDERLINE;
break;
@@
-1113,6
+1116,9
@@
tsetattr(int *attr, int l) {
case 22:
term.c.attr.mode &= ~ATTR_BOLD;
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;
break;
case 24:
term.c.attr.mode &= ~ATTR_UNDERLINE;
break;
@@
-1441,7
+1447,7
@@
strhandle(void) {
*/
strparse();
*/
strparse();
- p = strescseq.buf;
+ p = strescseq.buf;
switch(strescseq.type) {
case ']': /* OSC -- Operating System Command */
switch(strescseq.type) {
case ']': /* OSC -- Operating System Command */
diff --git
a/st.info
b/st.info
index
902c05a
..
e883319
100644
(file)
--- a/
st.info
+++ b/
st.info
@@
-86,7
+86,7
@@
st| simpleterm,
ri=\EM,
rmacs=\E(B,
rmcup=\E[?1049l,
ri=\EM,
rmacs=\E(B,
rmcup=\E[?1049l,
- rmso=\E[m,
+ rmso=\E[
23
m,
rmul=\E[m,
sc=\E7,
setab=\E[4%p1%dm,
rmul=\E[m,
sc=\E7,
setab=\E[4%p1%dm,
@@
-97,7
+97,7
@@
st| simpleterm,
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,
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[
7
m,
+ smso=\E[
3
m,
smul=\E[4m,
tbc=\E[3g,
tsl=\E]0;,
smul=\E[4m,
tbc=\E[3g,
tsl=\E]0;,