Subject: lib/1141: vt200 termcap entry oddness
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: None <abs@mono.city.ac.uk>
List: netbsd-bugs
Date: 06/20/1995 05:05:09
>Number:         1141
>Category:       lib
>Synopsis:       vt200 termcap entry oddness
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 20 05:05:02 1995
>Originator:     David Brownlee
>Organization:
Monochrome
>Release:        Jun 9th 1995
>Environment:
sparc, 1.0A, current
System: NetBSD gluon.city.ac.uk 1.0A NetBSD 1.0A (GLUON) #1: monoadm@gluon.city.ac.uk:/mono/u1/NetBSD/src/sys/arch/sparc/compile/GLUON sparc

>Description:
	The vt220 termcap entry defines F6 to F13 to be cap entrys k1 to k8.
	Previously I've seen applications map PF1 to PF4 to k1 to k4 and
	F6 to F10 to k6 to k10 (and accept that there is no k5, but at least
	get the keycaps right). In particular the NetBSD behaviour is a pain
	for applications that use function keys, but have fall through mappings
	for the dec ESC/BS/NL keys (The ESC key on a vt220 returns \E[23~,
	which gets mapped to k6 so breaking the application).
	Arguably the application is broken in this case, but I dont think so
	given the keycap reads f11!
		
	Also if defines if=/usr/share/tabset/vt100 then a tc=vt100 which
	has the if=/usr/share/tabset/vt100 as well.

		David
	
old entry

vt200|vt220|dec-vt220|vt200-js|vt220-js|dec vt200 series with jump scroll:\
        :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:\
        :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:ct=\E[3g:dc=\E[P:dl=\E[M:\
        :ei=\E[4l:im=\E[4h:k1=\E[17~:k2=\E[18~:k3=\E[19~:k4=\E[20~:\
        :k5=\E[21~:k6=\E[23~:k7=\E[24~:k8=\E[25~:kD=\E[3~:kH=\E[4~:\
        :kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kh=\E[1~:km:mi:ms:\
        :if=/usr/share/tabset/vt100:se=\E[27m:st=\EH:ue=\E[24m:\
        :tc=vt100:

new entry

vt200|vt220|dec-vt220|vt200-js|vt220-js|dec vt200 series with jump scroll:\
        :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:LE=\E[%dD:\
        :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:ct=\E[3g:dc=\E[P:dl=\E[M:\
        :ei=\E[4l:im=\E[4h:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k10=\E[21~:\
        :kD=\E[3~:kH=\E[4~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kh=\E[1~:\
	:km:mi:ms:se=\E[27m:st=\EH:ue=\E[24m:tc=vt100:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted: