summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2000-04-12 13:20:41 +0000
committeraaron <aaron@openbsd.org>2000-04-12 13:20:41 +0000
commitbc99ade9d5d6551b81a04dc010a146125e8ee5f4 (patch)
treedbef2f0eabb874551ef4da1c4d5de7e10b564efc
parenttypos (diff)
downloadwireguard-openbsd-bc99ade9d5d6551b81a04dc010a146125e8ee5f4.tar.xz
wireguard-openbsd-bc99ade9d5d6551b81a04dc010a146125e8ee5f4.zip
When resetting attributes (VT_NORMAL), do a proper color set.
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_vtf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_vtf.c b/sys/arch/i386/isa/pcvt/pcvt_vtf.c
index 0bc05a2aaa1..86b5a666f41 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_vtf.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_vtf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcvt_vtf.c,v 1.14 2000/03/30 21:02:11 aaron Exp $ */
+/* $OpenBSD: pcvt_vtf.c,v 1.15 2000/04/12 13:20:41 aaron Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -146,8 +146,10 @@ vt_sgr(struct video_state *svsp)
switch(svsp->parms[i++]) {
case 0: /* reset to normal attributes */
svsp->vtsgr = VT_NORMAL;
- if (pcdisp)
- setcolor = 0;
+ if (pcdisp) {
+ setcolor = (FG_LIGHTGREY << 8);
+ colortouched = 1;
+ }
break;
case 1: /* bold */