From 40b376941aa79eaef4c5635c30d17b43c9b524e5 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 15 Jul 2000 14:13:42 +0000 Subject: [PATCH] Shorten 49m attr resetting expression --- sys/dev/syscons/scterm-sc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/syscons/scterm-sc.c b/sys/dev/syscons/scterm-sc.c index f03b4d1f0726..cb6ea232f6cd 100644 --- a/sys/dev/syscons/scterm-sc.c +++ b/sys/dev/syscons/scterm-sc.c @@ -419,8 +419,7 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c) tcp->cur_attr = mask2attr(tcp); break; case 49: /* restore bg color back to normal */ - tcp->attr_mask &= - FG_CHANGED|BOLD_ATTR|UNDERLINE_ATTR|BLINK_ATTR; + tcp->attr_mask &= ~(BG_CHANGED|REVERSE_ATTR); tcp->cur_color.bg = tcp->std_color.bg; tcp->cur_attr = mask2attr(tcp); break;