aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-02 19:53:50 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-02 19:53:50 +0200
commitb3d8986489e44bb51dcd2637edccf6e1374a0059 (patch)
tree07ffc0b112807b35748bd4d1406b75944c2d7a76 /st.c
parent6f336ce8f26a6e721cf082be757f81bac4afaf08 (diff)
downloadst-b3d8986489e44bb51dcd2637edccf6e1374a0059.tar.gz
st-b3d8986489e44bb51dcd2637edccf6e1374a0059.tar.bz2
Add standout mode.
Diffstat (limited to 'st.c')
-rw-r--r--st.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/st.c b/st.c
index 8e1afe2..bd230a3 100644
--- 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 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;
@@ -1113,6 +1116,9 @@ tsetattr(int *attr, int l) {
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;
@@ -1441,7 +1447,7 @@ strhandle(void) {
*/
strparse();
- p = strescseq.buf;
+ p = strescseq.buf;
switch(strescseq.type) {
case ']': /* OSC -- Operating System Command */