From: aaron Date: Wed, 12 Apr 2000 13:20:41 +0000 (+0000) Subject: When resetting attributes (VT_NORMAL), do a proper color set. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bc99ade9d5d6551b81a04dc010a146125e8ee5f4;p=openbsd When resetting attributes (VT_NORMAL), do a proper color set. --- 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 */