rjk@mgweed.UUCP (Randy King) (03/09/84)
The following was gleaned from an existing TERMCAP, a fixed-up version for the 4424 by Mark Horton, and all the new 54-series stuff by someone (my apologies) at Teletype, Skokie, IL. The 5400 series arrow keys even work with these entries... Mark's 4424 TC fixes the "top-line-never-goes-away" bug in USG 5.0+ and System V. ----------------------------------------------------------------- # # T: TELETYPE # # We need descriptions for the model 40. There are known to be at least three # flavors of the 40, both seem more like IBM half duplex forms fillers than # ASCII terminals. They have lots of awful braindamage, such as printing # a visible newline indicator after each newline. The 40-1 is a half duplex # terminal and is hopeless. The 40-2 is braindamaged but has hope and is # described here. The 40-4 is a 3270 lookalike and beyond hope. # The terminal has visible bell but I don't know it - it's # null here to prevent it from showing the BL character. # There is an \EG in nl because of a bug in vi (if stty says you have # a "newline" style terminal (-crmode) vi figures all it needs is nl # to get crlf, even if cr is not ^M.) 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=\E[7m: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|5410-w|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|5420-w|5420 132columns:\ :co#132:li#24:\ :tc=5420: # --------------------------------