Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Add standout mode.
[st.git]
/
st.c
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 */