diff options
author | ache <ache@FreeBSD.org> | 2000-07-21 14:26:31 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2000-07-21 14:26:31 +0000 |
commit | 094a080d6e3319b487cc4158f467f6e296c0ec94 (patch) | |
tree | 3bb4c9d00dfdaf34f6b308201769e0e283a11fc2 /sys | |
parent | d88213abd91b5597a79af94a6e2cbcd6bcacd4e2 (diff) | |
download | FreeBSD-src-094a080d6e3319b487cc4158f467f6e296c0ec94.zip FreeBSD-src-094a080d6e3319b487cc4158f467f6e296c0ec94.tar.gz |
Make Reset (ESC c) reset attributes too, not only clear screen
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/syscons/scterm-sc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/syscons/scterm-sc.c b/sys/dev/syscons/scterm-sc.c index 58f3ff4..fdf92b0 100644 --- a/sys/dev/syscons/scterm-sc.c +++ b/sys/dev/syscons/scterm-sc.c @@ -213,7 +213,12 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c) tcp->esc = 4; return; #endif - case 'c': /* Clear screen & home */ + case 'c': /* reset */ + tcp->attr_mask = NORMAL_ATTR; + tcp->cur_color = tcp->std_color + = tcp->dflt_std_color; + tcp->rev_color = tcp->dflt_rev_color; + tcp->cur_attr = mask2attr(tcp); sc_clear_screen(scp); break; |