summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-03-14 16:26:24 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-03-14 16:26:24 +0000
commitcd9ed8a2fb2ec55abfbc44a4333f3e45269450a2 (patch)
tree4878e0e167d029dddcaf4ef04ab9b8fb5ae90073
parent96210b552abc81426a18b2ef15b867a9eeab4e87 (diff)
Fix `blink' and `underline' attribute handling for new PC display mode.
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_vtf.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_vtf.c b/sys/arch/i386/isa/pcvt/pcvt_vtf.c
index 52d2eafa473..0e842695216 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.12 2000/01/17 02:46:23 aaron Exp $ */
+/* $OpenBSD: pcvt_vtf.c,v 1.13 2000/03/14 16:26:23 aaron Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -162,11 +162,18 @@ vt_sgr(struct video_state *svsp)
case 4: /* underline */
svsp->vtsgr |= VT_UNDER;
+ if (pcdisp) {
+ setcolor &= ~(0x07 << 8);
+ setcolor |= (FG_CYAN << 8);
+ colortouched = 1;
+ }
break;
case 5: /* blinking */
svsp->vtsgr |= VT_BLINK;
if (pcdisp) {
+ if ((setcolor >> 8) == 0)
+ setcolor = (FG_LIGHTGREY << 8);
setcolor |= (FG_BLINK << 8);
colortouched = 1;
}
@@ -194,6 +201,10 @@ vt_sgr(struct video_state *svsp)
case 24: /* not underlined */
svsp->vtsgr &= ~VT_UNDER;
+ if (pcdisp) {
+ setcolor &= ~(0x07 << 8);
+ setcolor |= (FG_LIGHTGREY << 8);
+ }
break;
case 25: /* not blinking */