mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 04:13:39 +00:00
Implement SGR 22,24,25,27 from ECMA-48
This commit is contained in:
parent
f698dde983
commit
91de5914ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63681
@ -399,6 +399,22 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
|
||||
tcp->attr_mask |= REVERSE_ATTR;
|
||||
tcp->cur_attr = mask2attr(tcp);
|
||||
break;
|
||||
case 22: /* remove bold (or dim) */
|
||||
tcp->attr_mask &= ~BOLD_ATTR;
|
||||
tcp->cur_attr = mask2attr(tcp);
|
||||
break;
|
||||
case 24: /* remove underline */
|
||||
tcp->attr_mask &= ~UNDERLINE_ATTR;
|
||||
tcp->cur_attr = mask2attr(tcp);
|
||||
break;
|
||||
case 25: /* remove blink */
|
||||
tcp->attr_mask &= ~BLINK_ATTR;
|
||||
tcp->cur_attr = mask2attr(tcp);
|
||||
break;
|
||||
case 27: /* remove reverse */
|
||||
tcp->attr_mask &= ~REVERSE_ATTR;
|
||||
tcp->cur_attr = mask2attr(tcp);
|
||||
break;
|
||||
case 30: case 31: /* set ansi fg color */
|
||||
case 32: case 33: case 34:
|
||||
case 35: case 36: case 37:
|
||||
|
Loading…
Reference in New Issue
Block a user