From c58f75931455fa39eee6866e375b5791c6478fea Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Sat, 16 Oct 1999 18:56:38 +0000 Subject: - Add support for a traditional PC display (16 colors and use the standard IBM font) and make it the default mode. This is more or less a hack, since pcvt was developed only to be a vt220 terminal emulator. - Document new default mode in pcvt(4). - Add -o option to scon(1) for toggling between the new and legacy modes. --- sys/arch/i386/isa/pcvt/pcvt_out.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386/isa/pcvt/pcvt_out.c') diff --git a/sys/arch/i386/isa/pcvt/pcvt_out.c b/sys/arch/i386/isa/pcvt/pcvt_out.c index acb7f3a3e68..3811612ca01 100644 --- a/sys/arch/i386/isa/pcvt/pcvt_out.c +++ b/sys/arch/i386/isa/pcvt/pcvt_out.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcvt_out.c,v 1.12 1999/09/29 22:29:10 aaron Exp $ */ +/* $OpenBSD: pcvt_out.c,v 1.13 1999/10/16 18:56:36 aaron Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -92,6 +92,11 @@ static __inline void write_char (svsp, attrib, ch) struct video_state *svsp; u_short attrib, ch; { + if (pcdisp) { + *video = attrib | ch; + return; + } + if ((ch >= 0x20) && (ch <= 0x7f)) /* use GL if ch >= 0x20 */ { if(!svsp->ss) /* single shift G2/G3 -> GL ? */ @@ -1017,6 +1022,7 @@ vt_coldinit(void) struct video_state *svsp; do_initialization = 0; /* reset init necessary flag */ + pcdisp = 1; /* turn on traditional pc colors/font */ /* get the equipment byte from the RTC chip */ -- cgit v1.2.3