From 91de5914ecf52ef2fc30e93add68b7392d301a9d Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 20 Jul 2000 18:48:03 +0000 Subject: [PATCH] Implement SGR 22,24,25,27 from ECMA-48 --- sys/dev/syscons/scterm-sc.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sys/dev/syscons/scterm-sc.c b/sys/dev/syscons/scterm-sc.c index fc555b44b46f..58f3ff4e0df6 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: