summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-07-20 18:48:03 +0000
committerache <ache@FreeBSD.org>2000-07-20 18:48:03 +0000
commit4a9ecb6349180e26273f105c475b5e80a1e15867 (patch)
treeeab2defa9a1a74fdcc8c8776de3efc08f66ee9dc /sys/dev
parent07d662531ce7ce3de8a88e2f6d04614077e248a3 (diff)
downloadFreeBSD-src-4a9ecb6349180e26273f105c475b5e80a1e15867.zip
FreeBSD-src-4a9ecb6349180e26273f105c475b5e80a1e15867.tar.gz
Implement SGR 22,24,25,27 from ECMA-48
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/syscons/scterm-sc.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/dev/syscons/scterm-sc.c b/sys/dev/syscons/scterm-sc.c
index fc555b4..58f3ff4 100644
--- a/sys/dev/syscons/scterm-sc.c
+++ b/sys/dev/syscons/scterm-sc.c
@@ -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:
OpenPOWER on IntegriCloud