diff options
author | ache <ache@FreeBSD.org> | 2000-07-20 13:12:58 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2000-07-20 13:12:58 +0000 |
commit | 4a4a48b88170a310d3a7d113beca2650d4a28bf6 (patch) | |
tree | 66a5cf44617e65d7d58a56a71abcbe0589f43144 /sys/dev | |
parent | 20d503002f988c92049180587e0668bb0b83b133 (diff) | |
download | FreeBSD-src-4a4a48b88170a310d3a7d113beca2650d4a28bf6.zip FreeBSD-src-4a4a48b88170a310d3a7d113beca2650d4a28bf6.tar.gz |
Accorfing to ECMA-48 SGR 39 and 49 are just another colors and must not reset
other attrs, so reset only bold on 39
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/syscons/scterm-sc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/scterm-sc.c b/sys/dev/syscons/scterm-sc.c index cb6ea23..fc555b4 100644 --- a/sys/dev/syscons/scterm-sc.c +++ b/sys/dev/syscons/scterm-sc.c @@ -407,7 +407,7 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c) tcp->cur_attr = mask2attr(tcp); break; case 39: /* restore fg color back to normal */ - tcp->attr_mask &= BG_CHANGED; + tcp->attr_mask &= ~(FG_CHANGED|BOLD_ATTR); tcp->cur_color.fg = tcp->std_color.fg; tcp->cur_attr = mask2attr(tcp); break; @@ -419,7 +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 &= ~(BG_CHANGED|REVERSE_ATTR); + tcp->attr_mask &= ~BG_CHANGED; tcp->cur_color.bg = tcp->std_color.bg; tcp->cur_attr = mask2attr(tcp); break; |