X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;h=bd230a3467f68a9d16c1e7fb3ab991e4d374f3d5;hp=8e1afe29441d209e5173c5e36e194c0c0eee3878;hb=b11d85c9bef5a49c071553410c3f73c3181c6ece;hpb=7f17a70834961cd1ff748b2621c6fc87c069be22 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 */