[net.info-terms] Termcaps for Teletype 5410, 5420 & 4420

jhl@tty3b.UUCP (08/08/83)

Here is a termcap description of the new Teletype(r) 5410:

T5|5410|5410 terminal 80 columns:\
	:co#80:li#24:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:bs:pt:\
	:cl=\E[H\E[J:cd=\E[J:ce=\E[K:al=\E[L:dl=\E[M:\
	:im=:ei=:ic=\E[@:mi:dm=:ed=:dc=\E[P:\
	:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
	:kl=\E[D:kr=\E[C:kd=\E[B:ku=\E[A:kh=\E[H:\
	:k0=\E[24;1H:l0=Home down:
T6|5410132|5410 132 columns:\
	:co#132:li#24:\
	:tc=5410:

The 5420 is similar, but has more features:

T7|5420|5420 terminal 80 columns:\
	:co#80:li#24:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:bs:pt:\
	:cl=\E[H\E[J:cd=\E[J:ce=\E[K:al=\E[L:dl=\E[M:\
	:im=\E[4h:ei=\E[4l:ic=:mi:dm=:ed=:dc=\E[P:\
	:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
	:ks=\E[19;1j:ke=\E[19;0j:\
	:kl=\E[D:kr=\E[C:kd=\E[B:ku=\E[A:kh=\E[H:\
	:k0=\Eu:l0=Home down:k1=\E[T:l1=Roll down:\
	:k2=\Ez:l2=Bottom of memory:k3=\E[U:l3=Page down:\
	:k4=\E[S:l4=Roll up:k5=\Et:l5=Top of memory:\
	:k6=\E[V:l6=Page up:k7=\Ed:l7=Delete word:\
	:k8=\E[2J:l8=Clear screen:k9=\Ec:l9=(Shift) Reset:
T8|5420132|5420 132columns:\
	:co#132:li#24:\
	:tc=5420:

Notice that the up, down, right, left, and home arrow keys work, but only
10 of the 16 remaining keypad keys on the 5420 can be defined.  The ones
which aren't defined as function keys (clear line, del char, del line,
ins char, ins line) shouldn't cause any problems with vi, other than
ringing the bell.  On the 5410, the arrow keys always send escape
sequences (unless NUM LOCK is in effect); note that the home down key
is defined as function key #0.  The programmable function keys on both
terminals can be set up before entering vi.
	The following, if placed in $HOME/.exrc, will cause the defined
keypad keys on the 5420 (also the one on the 5410) to work approximately
as labeled (beware of control characters when reading this):














map #0 L
map #1 
map #2 G
map #3 
map #4 
map #5 1G
map #6 
map #7 dw
map #8 
map #9 


(Hope that didn't mess up your screen)

	The 4420 is an older model terminal from Teletype which doesn't
act much like what vi expects.  Nevertheless, you may find this termcap
for it useful:

T4|4420|Teletype 4420:\
	:vs=\ER:ve=:cr=\EG:nc:nl=\EB:\
	:co#80:li#24:sf=\EH\EM\EY7 :\
	:db:dm=:ed=:dc=\EP:\
	:dl=\EM:al=\EL:ce=\Ez:\
	:cl=\EH\EJ:cd=\EJ:cm=\EY%+ %+ :\
	:bs:up=\EA:do=\EB:nd=\EC:\
	:kl=^H:kr=\EC:ku=\EA:kd=\EB:kh=\EH:\
	:so=\E}:se=\E~:ms:us=\E\\:ue=\EZ:ul:eo:\
	:k0=\EU:l0=segment advance:\
	:k1=\ES:l1=scroll up:\
	:k2=\ET:l2=scroll down:\
	:k3=\E@:l3=cursor tab:\
	:k4=\EO:l4=cursor back tab:\
	:k5=\EJ:l5=clear:\
	:k6=\EL:l6=line insert:\
	:k7=\EM:l7=line delete:\
	:k8=\E\^:l8=character insert:\
	:k9=\EP:l9=character delete:

And here is a corresponding .exrc:

map #0 
map #1 
map #2 
map #3 8l
map #4 8h
map #5 
map #6 O
map #7 dd
map #8 i 
map #9 x

Jonathon Luers
Teletype Corporation
...{ otuxa | ihnp4 | we13 }!tty3b!jhl

rjk@mgweed.UUCP (08/09/83)

Pursuant to the latest posting of TTY termcaps, here is a more
exhaustive list courtesy of folks from all over the place and, of
course, Jonathon Luers @ TTY for the latest ones.

#
# T: TELETYPE
#
T0|40-2|tty40|ds40|ds40/2|ds40-2|dataspeed40|teletype dataspeed 40/2:\
	:cl=160\ER:cd=160\EJ:al=160\EL:dl=160\EM:dc=50\EP:im=:ei=:ic=50\E\^:\
	:nd=\EC:up=\E7:bs:cr=\EG:nl=\EG\EB:do=\EB:co#80:li#24:vb=:\
	:so=\E3:se=\E4:
T1|43|tty43|model 43 teletype:\
	:cr=^M:do=^J:nl=^J:bl=^G:\
	:kb=^h:am:le=^H:bs:hc:os:co#132:
T2|37|tty37|model 37 teletype:\
	:cr=^M:do=^J:nl=^J:bl=^G:\
	:le=^H:bs:hc:hu=\E8:hd=\E9:up=\E7:os:
T3|33|tty33|tty|model 33 teletype:\
	:cr=^M:do=^J:nl=^J:bl=^G:\
	:co#72:hc:os:
T4|4420|tty4420|teletype 4420:\
	:vs=\ER:ve=:cr=\EG:nc:nl=\EB:\
	:co#80:li#24:sf=\EH\EM\EY7 :\
	:db:dm=:ed=:dc=\EP:\
	:dl=\EM:al=\EL:ce=\Ez:\
	:cl=\EH\EJ:cd=\EJ:cm=\EY%+ %+ :\
	:bs:up=\EA:do=\EB:nd=\EC:\
	:kl=^H:kr=\EC:ku=\EA:kd=\EB:kh=\EH:\
	:so=\E}:se=\E~:ms:us=\E\\:ue=\EZ:ul:eo:\
	:k0=\EU:l0=segment advance:\
	:k1=\ES:l1=scroll up:\
	:k2=\ET:l2=scroll down:\
	:k3=\E@:l3=cursor tab:\
	:k4=\EO:l4=cursor back tab:\
	:k5=\EJ:l5=clear:\
	:k6=\EL:l6=line insert:\
	:k7=\EM:l7=line delete:\
	:k8=\E\^:l8=character insert:\
	:k9=\EP:l9=character delete:
T5|4424|tty4424|teletype 4424:\
	:co#80:li#24:am:da:db:bs:\
	:so=\E3:se=\E[0m:mr=\E}:us=\E\\:sr=\ET:\
	:ta=^I:bt=\EO:ho=\E[H:up=\EA:UP=\E[%dA:\
	:do=\EB:DO=\E[%dB:nd=\EC:RI=\E[%dC:\
	:LE=\E[%dD:cm=\E[%i%d;%dH:\
	:cl=\E[H\E[2J:cd=\EJ:ce=\Ez:\
	:ti=\E[20l\E[?7h:\
	:cs=\E[%i%d;%dr:al=\EL:AL=\E[%dL:\
	:dl=\EM:DL=\E[%dM:IC=\E[%d@:ic=\E\^:dc=\EP:DC=\E[%dP:\
	:ku=\EA:kd=\EB:kl=\ED:kr=\EC:kh=\E[H:kb=^H:\
	:k1=^B1\r:k2=^B2\r:k3=^B3\r:k4=^B4\r:\
	:k5=^B5\r:k6=^B6\r:k7=^B7\r:k8=^B8\r:
T5-2|4424-2|tty4424-2|teletype 4424 in display function group ii:\
	mr@:us@:tc=4424:
# Notice that the up, down, right, left, and home arrow keys work, but only
# 10 of the 16 remaining keypad keys on the 5420 can be defined.  The ones
# which aren't defined as function keys (clear line, del char, del line,
# ins char, ins line) shouldn't cause any problems with vi, other than
# ringing the bell.  On the 5410, the arrow keys always send escape
# sequences (unless NUM LOCK is in effect); note that the home down key
# is defined as function key #0.  The programmable function keys on both
# terminals can be set up before entering vi.
#
T6|5410|5410 terminal 80 columns:\
	:co#80:li#24:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:bs:pt:\
	:cl=\E[H\E[J:cd=\E[J:ce=\E[K:al=\E[L:dl=\E[M:\
	:im=:ei=:ic=\E[@:mi:dm=:ed=:dc=\E[P:\
	:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
	:kl=\E[D:kr=\E[C:kd=\E[B:ku=\E[A:kh=\E[H:\
	:k0=\E[24;1H:l0=Home down:
T7|5410132|5410 132 columns:\
	:co#132:li#24:\
	:tc=5410:
T8|5420|5420 terminal 80 columns:\
	:co#80:li#24:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:bs:pt:\
	:cl=\E[H\E[J:cd=\E[J:ce=\E[K:al=\E[L:dl=\E[M:\
	:im=\E[4h:ei=\E[4l:ic=:mi:dm=:ed=:dc=\E[P:\
	:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
	:ks=\E[19;1j:ke=\E[19;0j:\
	:kl=\E[D:kr=\E[C:kd=\E[B:ku=\E[A:kh=\E[H:\
	:k0=\Eu:l0=Home down:k1=\E[T:l1=Roll down:\
	:k2=\Ez:l2=Bottom of memory:k3=\E[U:l3=Page down:\
	:k4=\E[S:l4=Roll up:k5=\Et:l5=Top of memory:\
	:k6=\E[V:l6=Page up:k7=\Ed:l7=Delete word:\
	:k8=\E[2J:l8=Clear screen:k9=\Ec:l9=(Shift) Reset:
T9|5420132|5420 132columns:\
	:co#132:li#24:\
	:tc=5420:
#