|
|
@ -1104,6 +1104,9 @@ tsetattr(int *attr, int l) { |
|
|
|
case 1: |
|
|
|
case 1: |
|
|
|
term.c.attr.mode |= ATTR_BOLD; |
|
|
|
term.c.attr.mode |= ATTR_BOLD; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case 3: /* enter standout (highlight) mode TODO: make it italic */ |
|
|
|
|
|
|
|
term.c.attr.mode |= ATTR_REVERSE; |
|
|
|
|
|
|
|
break; |
|
|
|
case 4: |
|
|
|
case 4: |
|
|
|
term.c.attr.mode |= ATTR_UNDERLINE; |
|
|
|
term.c.attr.mode |= ATTR_UNDERLINE; |
|
|
|
break; |
|
|
|
break; |
|
|
@ -1113,6 +1116,9 @@ tsetattr(int *attr, int l) { |
|
|
|
case 22: |
|
|
|
case 22: |
|
|
|
term.c.attr.mode &= ~ATTR_BOLD; |
|
|
|
term.c.attr.mode &= ~ATTR_BOLD; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case 23: /* leave standout (highlight) mode TODO: make it italic */ |
|
|
|
|
|
|
|
term.c.attr.mode &= ~ATTR_REVERSE; |
|
|
|
|
|
|
|
break; |
|
|
|
case 24: |
|
|
|
case 24: |
|
|
|
term.c.attr.mode &= ~ATTR_UNDERLINE; |
|
|
|
term.c.attr.mode &= ~ATTR_UNDERLINE; |
|
|
|
break; |
|
|
|
break; |
|
|
|