*BSD News Article 18841


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!usenet.ins.cwru.edu!wariat.org!wariat!stever
From: stever@wariat.org (Steve Ratliff)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: Problem with pk 0.2.4 with a "mono VGA" monitor
Date: 26 Jul 1993 06:34:34 GMT
Organization: Akademia Pana Kleksa, Public Access Uni* Site
Lines: 52
Message-ID: <22vttr$cp3@gazpacho.wariat.org>
References: <CAIIK8.n4v@sugar.NeoSoft.COM> <1993Jul24.024908.27448@craycos.com> <22u7mtINNjtn@kralizec.zeta.org.au>
NNTP-Posting-Host: wariat
X-Newsreader: TIN [version 1.2 PL0]

	Here's an updated pc3 termcap entry that should perform properly
for color and monochrome systems.  It is correct but hasn't been
extensively tested yet.  If anybody finds any bugs or corrections for it
please let me know.  As always, use at your own risk and your mileage may
vary.

/* special effects should work fine on both monochrome and color VGA
   systems, though they have only been tested on a HGA system.
   kI and kM are set up to toggle, the entries are correct but
   haven't been tested.  This is for a pccons pk2.4 system and all
   entries have been confirmed with the pccons source and tested on
   the console. */

pc3|ibmpc3|IBM PC 386BSD Console with special effects:\
	:DO=\E[%dB:K1=\E[H:K2=\E[I:K3=\E[E:K4=\E[F:K5=\E[G:\
	:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:am:bl=^G:bs:bw:\
	:cb=\E[1K:cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%d;%dH:co#80:\
	:cr=^M:do=\E[B:ho=\E[H:is=\E[m\E[0x:k0=\E[V:k1:\E[M:k2:\E[N:\
	:k3:\E[O:k4:\E[P:k5:\E[Q:k6:\E[R:k7:\E[S:k8:\E[T:k9:\E[U:\
	:kD=\177:kH=\E[F:kI=\E[L:kM=\E[L:kN=\E[G:kP=\E[I:kb=\177:\
	:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=\E[D:li#25:\
	:ms:nd=\E[C:rs=\E[m\E[0x:se=\E[m:sf=\E[S:so=\E[0;1r\E[1m:\
	:sr=\E[T:ta=^I:te=\E[m:ti=\E[m:ue=\E[m:up=\E[A:us=\E[1;0r\E[1m:\
	:mb=\E[0;9r\E[1m:me=\E[m:

/* replace inverse video standout with bright on black standout as I
   can't find an inverse video that works on both VGA and HGA */

pc3HGA|pc3MDA| IBM PC 386 BSD Hercules Console with special effects:\
	:so=\E[10;0r\E[1m:tc=pc3:

/* Hack to make backspace return ^H the way God intended it to be */

*** pccons.c.save	Sun Jul 25 03:03:08 1993
--- pccons.c	Sun Jul 25 03:04:23 1993
***************
*** 1255,1261 ****
  	ASCII,	"0",		")",		")",		/* 11 0 */
  	ASCII,	"-",		"_",		"\037",		/* 12 - */
  	ASCII,	"=",		"+",		"+",		/* 13 = */
! 	ASCII,	"\177",		"\177",		"\010",		/* 14 backspace */
  	ASCII,	"\t",		"\177\t",	"\t",		/* 15 tab */
  	ASCII,	"q",		"Q",		"\021",		/* 16 q */
  	ASCII,	"w",		"W",		"\027",		/* 17 w */
--- 1255,1261 ----
  	ASCII,	"0",		")",		")",		/* 11 0 */
  	ASCII,	"-",		"_",		"\037",		/* 12 - */
  	ASCII,	"=",		"+",		"+",		/* 13 = */
! 	ASCII,	"\010",		"\177",		"\177",		/* 14 backspace */
  	ASCII,	"\t",		"\177\t",	"\t",		/* 15 tab */
  	ASCII,	"q",		"Q",		"\021",		/* 16 q */
  	ASCII,	"w",		"W",		"\027",		/* 17 w */