Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site tty3b.UUCP Path: utzoo!linus!decvax!microsoft!uw-beaver!cornell!vax135!ariel!hou5f!hou5g!hou5h!hou5a!hou5d!hogpc!houxm!hocda!spanky!burl!sb1!ll1!otuxa!tty3b!jhl From: jhl@tty3b.UUCP Newsgroups: net.info-terms Subject: Termcaps for Teletype 5410, 5420 & 4420 Message-ID: <163@tty3b.UUCP> Date: Mon, 8-Aug-83 15:58:07 EDT Article-I.D.: tty3b.163 Posted: Mon Aug 8 15:58:07 1983 Date-Received: Wed, 10-Aug-83 12:43:12 EDT Organization: Teletype Corp., Skokie, Ill Lines: 111 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