diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-10-16 18:56:38 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-10-16 18:56:38 +0000 |
commit | c58f75931455fa39eee6866e375b5791c6478fea (patch) | |
tree | 4941afb4376222061c2a617df76e0949198bf70a /sys/arch/i386/isa/pcvt/pcvt_out.c | |
parent | dadb7bf9c6f6f6c27e774fd5edd5c5fd9c0b98b9 (diff) |
- 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.
Diffstat (limited to 'sys/arch/i386/isa/pcvt/pcvt_out.c')
-rw-r--r-- | sys/arch/i386/isa/pcvt/pcvt_out.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 */ |