Add standout mode.

This commit is contained in:
Christoph Lohmann
2012-09-02 19:53:50 +02:00
parent 7f17a70834
commit b11d85c9be
2 changed files with 9 additions and 3 deletions

8
st.c
View File

@ -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 */