Subject: Re: Is this just the way it is with 1.4 Pmax?
To: NetBSD Bob <nbsdbob@weedcon1.cropsci.ncsu.edu>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-pmax
Date: 10/04/1999 15:56:56
hi,

The short explanation is that the install media has a .termcap file
with an entry for "rcons". The installation used to copy this
somewhere where a root login would find it.  That step is no longer
done, but the "rcons" entry wasn't added to our termcap database in
time for 1.4.1.

Not very comforting, but that's what happened.

>Unless dictated by the boss......(:+{{.....
>
>Anyway, what is needed to get vi to work correctly on pmax?

If you want full-blown support with recognition of the lk201/401
keypad (insert & friends, the up/down arrow keys, and keypad mode)
then install X and use vi in an Xterm.  Seriously.

"rcons" is derived from an emulator for the Sun-PROM tty emulator.
There's no particularly good way to map the keycap labels on a type-4
or type-5 keyboard onto an LK-201 or LK-401 keyboard -- at least not
without making people who want a vt220 look-and-feel very unhappy.

Here's the source for an (older) version of the .termcap file.  The
specialized entries for "sfb" and "mfb" are no longer needed; the
console automagically gets the tty size correct.


#
#       $NetBSD: termcap.rcons,v 1.1 1997/11/03 10:57:02 jonathan Exp $
#
#	termcap customized for pmax installation
#	From:
######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
#
#
#	Version 9.13.25
#	termcap syntax
#
#	Eric S. Raymond		(current maintainer)
#	John Kunze, Berkeley
#	Craig Leres, Berkeley
#
rcons|sun-il:\
	:hs:am:km:ms:\
	:co#80:li#34:\
	:%7=\E[194z:&5=\E[193z:&8=\E[195z:@7=\E[220z:AL=\E[%dL:\
	:DC=\E[%dP:DL=\E[%dM:F1=\E[234z:F2=\E[235z:IC=\E[%d@:\
	:K2=\E[218z:al=\E[L:bl=^G:cd=\E[J:ce=\E[K:cl=^L:\
	:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:do=^J:ei=:ic=\E[@:im=:\
	:k1=\E[224z:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:\
	:k6=\E[229z:k7=\E[230z:k8=\E[231z:k9=\E[232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