summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-07-21 14:26:31 +0000
committerache <ache@FreeBSD.org>2000-07-21 14:26:31 +0000
commit094a080d6e3319b487cc4158f467f6e296c0ec94 (patch)
tree3bb4c9d00dfdaf34f6b308201769e0e283a11fc2 /sys
parentd88213abd91b5597a79af94a6e2cbcd6bcacd4e2 (diff)
downloadFreeBSD-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.c7
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;
OpenPOWER on IntegriCloud