home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / mskermit / msvibm.tc < prev    next >
Text File  |  2020-01-01  |  20KB  |  447 lines

  1. MSVIBM.TC
  2.  
  3. This file contains UNIX termcap entries for use with DEC VT300-series
  4. terminals and/or the MS-DOS Kermit or Macintosh Kermit VT320 emulators.     These
  5. termcaps were submitted by users, and none of them should be considered
  6. "approved" or "official".
  7.  
  8. Additions or improvements to this collection may be made from time to time.
  9. If you have anything to contribute, please feel free!
  10.  
  11. ------------------------------
  12.  
  13. To: cmg@watsun.cc.columbia.edu, jrd@watsun.cc.columbia.edu
  14. From: Paul W Placeway <pplacewa@BBN.COM>
  15. Sender: pplacewa@BBN.COM
  16. Subject: Termcap entry for Kermit emulators (PC and Mac)
  17. Date: Tue, 6 Feb 90 14:58:57 EST
  18.  
  19. Well, you asked for it: here is my personal entry into the termcap fray: this
  20. does just about everything that MacKermit 0.98 and MS-DOS Kermit 3.0 do that
  21. UNIX machines care about.  Especially important to have (for any ANSI-style
  22. terminal that can handle these) are the entries for UP, DO, LE, RI, IC, DC,
  23. AL, and DL (which are the multiple item versions of move up, down, left, and
  24. right; insert and delete character, and add and delete lines, respectively).
  25. Many newer programs (notably Emacs, tcsh, and a few news readers) can use
  26. these features to do much faster terminal updates.
  27.  
  28. ---(cut here)---
  29. MK|mac|ckm|ckmker|MacKermit|Macintosh Kermit 0.93:\
  30.     :ti=\E[>4h:te=\E[>4l:vs=\E[>4h:ve=\E[>4l:\
  31.     :is=\E>\E[?3l\E[?4l\E[?5l\E[?6l\E[?7h\E[?8h\E>4l:\
  32.     :rs=\E>\E[?3l\E[?4l\E[?5l\E[?6l\E[?7h\E[?8h\E>4l:MT:km:da:\
  33.     :sf=\ED:sr=\EM:sb=\EM:\
  34.     :cr=^M:do=^J:nl=^J:bl=^G:co#80:li#24:cl=\E[;H\E[2J:\
  35.     :le=^H:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
  36.     :cs=\E[%i%d;%dr:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:\
  37.     :ue=\E[24m:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:\
  38.     :rf=/usr/lib/tabset/vt100:ct=\E[3g:st=\EH:ks=\E[?1h\E=:\
  39.     :ke=\E[?1l\E>:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
  40.     :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:ta=^I:pt:sr=\EM:vt#3:xn:\
  41.     :al=\E[L:dl=\E[M:im=\E[4h:ei=\E[4l:dc=\E[P:\
  42.     :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\
  43.     :UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\
  44.     :go=\E(0:ge=\E(B:
  45. ---(cut here)---
  46.  
  47. The only parts that are questionable (they use Zenith-style escapes) are:
  48.  
  49.     :ti=\E[>4h:te=\E[>4l:vs=\E[>4h:ve=\E[>4l:\
  50.  
  51. Everything else should be fully vt320 compatible, although you will want to
  52. try it out just to be sure.  It should all work for MS-DOS Kermit 3.0 too...
  53.  
  54. We also might want to look at the features of Xterm, and (possibly) add any of
  55. these that the Kermit emulators don't yet do...
  56.  
  57.         -- Paul
  58.  
  59. ------------------------------
  60.  
  61. Date: Mon, 19 Feb 90 20:32:38 -0500
  62. From: composer@bucsf.bu.edu (Jeff Kellem)
  63. To: Christine M Gianone <cmg@watsun.cc.columbia.edu>
  64. Subject: termcap entry for a vt320 
  65.  
  66. Christine,
  67.  
  68. In Info-Kermit Digest V11 #4, you mention that people with vt320 termcap
  69. entries should send them in.  I wasn't sure exactly which address to send
  70. to, so hope you don't mind.  :-) I posted one to the USENET newsgroup
  71. comp.terminals recently.  It's something I threw together, but should be
  72. fine.  It's still being tested.     But, I've had no problems so far.  I'll
  73. include a copy of it here.  It's heavily documented (more than need be, but
  74. so what?  :) ...
  75.  
  76. Does MS-KERMIT 3.0 return an ID when given an ID request?  You implied that
  77. it might return something when sent an "ESC Z", which, FYI, a vt320 doesn't
  78. respond to.  The appropriate ID request control sequence is "ESC [ c" (also
  79. known as "CSI c").  The vt320 should respond with "^[[?63;1;2;67;8c", where
  80. "^[" is ESCape.     Just curious, that's all...
  81.  
  82. [Ed. - MS-DOS Kermit sends "ESC [ ? 63; 1; 2; 8; 9 c", since its capabilities
  83. are slightly different from a VT320.  It responds this way to both "ESC Z" and
  84. to "ESC [ c".]
  85.  
  86. I just ftp-ed the file `vt320emu.txt' from the test directory on watsun.  I
  87. noticed some of the additions you added to the emulation that don't exist in a
  88. real vt320, such as absolute cursor movement vertically (or horizontally)
  89. only.  This would require a different termcap entry than the default for a
  90. "real" vt320.  I'll look over the document a little more..I've only glanced
  91. over it, at this point.     I'll write up a new termcap entry, that will point to
  92. the vt320 entry I sent you, with the appropriate additions/changes.  This may
  93. take a little while, though, as I'm in the middle of some other projects.
  94. But, then..who knows?  :)
  95.  
  96. If you have any questions or comments regarding this termcap, please send
  97. me a note.  Thanks...  Enjoy!
  98.  
  99.             -jeff
  100.  
  101. Jeff Kellem
  102. INTERNET: composer@cs.bu.edu  (or composer@bu.edu)
  103. UUCP: ...!harvard!bu-cs!composer
  104.  
  105. ---(cut here)---
  106. # -*-Text-*-
  107. # Description: DEC vt320 termcap entry
  108. #
  109. #    Created by: composer@cs.bu.edu on 10 Feb 1990.
  110. # Last modified by: composer@cs.bu.edu on 15 Feb 1990.
  111. # Posted to USENET newsgroup comp.terminals on 15 Feb 1990.
  112. # ------------------------------------------------------------------------
  113. #
  114. # This vt320 termcap entry is a test entry for a vt320.     (Imagine that? ;-)
  115. # It was written from scratch.    All (well, at least, most :) of the
  116. # capabilities have been commented and should be approximately in the order
  117. # that they are in the entry.  I took some educated guesses at some of
  118. # these, with info from the vt320 "Installing and Using .." manual and from
  119. # some other termcap entries.  I have yet to test the status line stuff, I
  120. # will probably test it soon, though.  Where I wasn't sure what to put for
  121. # a capability, I added a comment of some sort.     Also, the initialization
  122. # string has comments about what each control sequence is supposed to do.
  123. # If you have any comments or questions regarding this termcap entry, or if
  124. # you see something I missed, please send me a note.  Thanks...
  125. #
  126. # Enjoy!!
  127. #
  128. #            -jeff
  129. #
  130. # p.s. Yeah, all these comments don't need to be included, but (who knows?)
  131. # they might be useful for some of those out there that have not built a
  132. # termcap entry before, or have forgotten.  If any changes are made that I
  133. # feel should be reposted, I will probably only post the main termcap entry
  134. # with the comment for the `is' capability only.  But, then...I dunno.. :)
  135. #
  136. # Jeff Kellem
  137. # INTERNET: composer@cs.bu.edu     (or composer@bu.edu)
  138. # UUCP: ...!harvard!bu-cs!composer
  139. # ------------------------------------------------------------------------
  140. #    hs: has status line
  141. #    es: other display cmds work while writing the status line
  142. #    ts: cmds to move cursor into status line
  143. #        moves to status line, moves cursor to 1,1 in status line (?),
  144. #        then clears to end of line
  145. #    fs: cmds to move cursor back from status line to previous position
  146. #    ds: cmds to disable the display of the status line
  147. #        maybe we should just set status line type to none for disable
  148. #        as in,        :ds=\E[0$~
  149. #        but, then, may have to chg to host-writable stat line to
  150. #        move into it.  :(  probably leave it alone for now..
  151. #        anyways, would rather just keep it host-writable..
  152. #        currently, we're doing ..
  153. #        moves to status line, moves cursor to 1,1 in status line (?),
  154. #        clears to end of line, then moves cursor back to prev position
  155. #    im: enter insert mode
  156. #    ei: exit insert mode
  157. #    IC: insert N chars
  158. #    mi: safe to move cursor in insert mode. I'm assuming that the
  159. #        terminal remains in insert mode. (I need better technical docs ;-)
  160. #    dc: cmds to delete one char position at the cursor
  161. #    DC: cmds to delete N chars
  162. #    dm & ed: enter/exit delete mode .. should these be here? NO del mode!
  163. #        in some termcap entries they seem to be set to nothing, as in:
  164. #        :dm=:ed=:  ... and others they are nonexistent
  165. #    al & AL: insert one/N line/s 
  166. #    dl & DL: delete one/N line/s
  167. #    cs: set scroll region - 2 args, top and bottom lines of region
  168. #    sf: cmds to scroll one line up
  169. #    sr: cmds to scroll one line down
  170. #    am: flag says wrap on margin
  171. #    xn: flag says cursor on last column/line wrap glitch
  172. #    ce: cmds to clear to EOL
  173. #    cl: cmds to clear entire screen and position cursor at upper left
  174. #    cd: cmds to clear the line the cursor is on to end of screen
  175. #    ec: cmds to clear N chars, starting with char cursor is on
  176. #    cm: cmds to move to cursor position LINE, COLUMN
  177. #    ho: cmds to move cursor to home position, upper left corner
  178. # @@@ NO ll: cursor to lower left ??
  179. #    cr: cursor to beginning of line ?? set to ^M right now, why not?
  180. #    nw: cmds to move cursor to beginning of next line
  181. #    ta: cmds to move cursor forward to next hardware tab
  182. # @@@ NO bt: NO backward tab that I can find .. so, NOT included
  183. #    le: cmds to move cursor left one column - should this just be ^H ??
  184. #    bc: OBSOLETE - same as `le' capability --REMOVED
  185. #    nd: cmds to move cursor right one column
  186. #    up & do: cmds to move cursor up/down one line
  187. #    LE,RE,UP,DO: move cursor N of above lower case capabilities
  188. #    sc & rc: save/restore cursor position
  189. #    so & se: start/end standout mode (reverse video)
  190. #    ms: says that it is safe to move cursor in standout mode..
  191. #        is this ok??? @@@ ?? seems so..but, maybe not..who knows?
  192. #    mb: cmds to turn on blinking attribute
  193. #    md: cmds to turn on bold/double-bright attribute
  194. #    mk: cmds for invisible attribute
  195. #    mr: cmds to turn on reverse attribute
  196. #    me: cmds to turn OFF all attributes
  197. # @@@ What about uc & ul capabilities .. old underlining stuff..??
  198. # @@@    doesn't seem like vt320 can deal with it, but who knows?
  199. # @@@ What to do about alternate character set??  vt320 can handle more
  200. # @@@ than one alternate set, it looks like.
  201. #    vi & ve: cmds to turn cursor off & on
  202. #    bl: cmds to sounds bell
  203. #    ks: cmds to put numeric keypad and cursor keys in application mode
  204. #    ke: cmds to put numeric keypad and cursor keys back to normal
  205. #    kl/kr/ku/kd: chars sent by left/right/up/down arrow keys in appl mode
  206. #    k1 .. k4: chars sent by pf1 .. pf4 keys
  207. #    l1 .. l4: strings on pf1 .. pf4 keys (really, "pf1" to "pf4")
  208. #       @@@      put here so as not to confuse with f1 to f4 keys
  209. #    kD: chars sent by the `Remove' key ("delete char" key)
  210. #    kI: chars sent by the `Insert Here' key ("ins char" or 
  211. #        "enter ins mode" key)
  212. #    kN: chars sent by the `Next Screen' key ("next page" key)
  213. #    kP: chars sent by the `Prev Screen' key ("previous page" key)
  214. #      what about "scroll forward/reverse" key capabilties instead?? nah..
  215. #    is: initialization string
  216. #        exit vt52 mode
  217. #        set operating mode to vt300 mode, 7-bit controls (default)
  218. #        soft terminal reset
  219. #        set screen width to 80 columns, side-effect => clears screen
  220. #        set screen mode to dark background
  221. #        OVERRIDE disabling of autowrap (from soft reset)
  222. #        probably shouldn't, but who cares?  :)
  223. #        set autorepeat mode on
  224. #        set scrolling to jump scroll
  225. #        set keyboard usage mode to typewriter
  226. #        set status line type to host-writable
  227. #  @@@    set tab stops to every 8 positions (only first 9, for 80 col)
  228. #  @@@    *NO* need to set tab stops.  `tset' should try to do it, since `ct'
  229. #  @@@    and `st' capabilities exist.  It uses a combination of `ct', `st',
  230. #  @@@    and `ch' (or `cm') capabilities to set tab stops at every 8 pos.
  231. #
  232. #    rs: reset string, same as `is' capability, right now..
  233. #        any other suggestions?
  234. #    st: cmds to set tab stop at current cursor column
  235. #    ct: cmds to clear all tab stops
  236. #
  237. db|vt320|vt300|vt320-am|vt300-am|dec vt320 w/am:\
  238.     :co#80:li#24:\
  239.     :hs:\
  240.     :es:\
  241.     :ts=\E[1$}\E[;H\E[K:\
  242.     :fs=\E[0$}:\
  243.     :ds=\E[1$}\E[;H\E[K\E[0$}:\
  244.     :im=\E[4h:ei=\E[4l:mi:\
  245.     :IC=\E[%d@:\
  246.     :dc=\E[P:DC=\E[%dP:\
  247.     :al=\E[L:AL=\E[%dL:dl=\E[M:DL=\E[%dM:\
  248.     :cs=\E[%i%d;%dr:sf=\ED:sr=\EM:\
  249.     :am:xn:\
  250.     :ce=\E[K:cl=\E[H\E[J:cd=\E[J:ec=\E[%dX:\
  251.     :cm=\E[%i%d;%dH:ho=\E[H:\
  252.     :cr=^M:nw=\EE:ta=^I:\
  253.     :le=\E[D:nd=\E[C:up=\E[A:do=\E[B:\
  254.     :LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:DO=\E[%dB:\
  255.     :sc=\E7:rc=\E8:\
  256.     :so=\E[7m:se=\E[27m:ms:\
  257.     :mb=\E[5m:md=\E[1m:mk=\E[m:mr=\E[7m:me=\E[m:\
  258.     :us=\E[4m:ue=\E[24m:\
  259.     :vi=\E[?25l:ve=\E[?25h:\
  260.     :bl=^G:\
  261.     :ks=\E[?1h\E=:ke=\E[?1l\E>:\
  262.     :kl=\EOD:kr=\EOC:ku=\EOA:kd=\EOB:\
  263.     :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
  264.     :l1=PF1:l2=PF2:l3=PF3:l4=PF4:\
  265.     :kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
  266.     :is=\E<\E[63;1"p\E[!p\E[?3l\E[?5l\E[?7h\E[?8h\E[?4l\E[?68l\E[2$~:\
  267.     :rs=\E<\E[63;1"p\E[!p\E[?3l\E[?5l\E[?7h\E[?8h\E[?4l\E[?68l\E[2$~:\
  268.     :st=\EH:ct=\E[3g:
  269. #
  270. db|vt320-w|vt300-w|dec vt300:\
  271.     :co#132:\
  272.     :is=\E<\E[63;1"p\E[!p\E[?3h\E[?5l\E[?7h\E[?8h\E[?4l\E[?68l\E[2$~:\
  273.     :tc=vt320:
  274. # End of vt320 termcap entry
  275. ----(cut here)----
  276.  
  277. The following was obtained from a DEC Ultrix 2.0 system by setting
  278. terminal type to vt300 and then doing 'echo $TERMCAP'.    This is an old
  279. release of Ultrix, and there may be newer vt3xx termcaps in the newer
  280. Ultrix versions.
  281. ----(cut here)----
  282. db|vt300:\
  283.     :hs:es:ts=\E[1$}\E[;H\E[K:fs=\E[0$}:ds=\E[1$}\E[;H\E[K\E[0$}:\
  284.     :ae=4\E(B:as=2\E(<:am:al=\E[L:bl=^G:bs:cd=50\E[J:ce=3\E[K:\
  285.     :cl=50\E[;H\E[2J:cm=10\E[%i%d;%dH:co#80:cr=^M:cs=\E[%i%d;%dr:\
  286.     :dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:\
  287.     :is=\E[1;24r\E[24;1H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
  288.     :kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:\
  289.     :ku=\EOA:le=^H:li#24:md=2\E[1m:mr=2\E[7m:mb=2\E[5m:\
  290.     :me=2\E[m:mi:nd=\E[C:nl=^J:pt:rc=\E8:rf=/usr/lib/tabset/vt100:\
  291.     :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:sc=\E7:se=\E[m:so=\E[7m:\
  292.     :sr=\EM:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:vt#3:xn:
  293. ----(cut here)----
  294.  
  295. Date: Thu, 1 Mar 90 00:47:18 -0600
  296. From: Glen Overby <overby@plains.NoDak.edu>
  297. To: info-kermit-request@cunixf.cc.columbia.edu
  298. Subject: VT 320 Termcap
  299.  
  300. Dear Kermit people,
  301.  
  302.     I found that none of our Unix systems had a termcap entry to take
  303. full advantage of the VT-320 terminal capabilities offered in MS Kermit 3.0,
  304. so I wrote one.     It is enclosed below.    I believe I have correctly
  305. implimented everything that Kermit 3.0's terminal emulation has and that
  306. termcap knows about, except in the special function keys (I found only F1-F4
  307. pre-assigned a code).  If you find anything incorrect, or have additions,
  308. please send them to me.     I will pass on additions sent to me on.
  309.  
  310.         Glen Overby    <overby@plains.nodak.edu>
  311.     uunet!plains!overby (UUCP)  overby@plains (Bitnet)
  312.  
  313. ---(cut here)---
  314. #
  315. #    Termcap entry for MS Kermit 3.0 in VT320 mode
  316. # 02/24/90    Glen Overby <overby@plains.nodak.edu>
  317. #        Written from scratch using MS Kermit 3.0 and termcap(5).
  318. #
  319. ke|kermit320|kermit320core:\
  320.     :co#80:li#24:\
  321.     :cr=^M:bl=^G:\
  322.     :le=^H:nd=\E[C:up=\E[A:do=^J:LE=\E[%dD:ND=\E[%dC:UP=\E[%dA:do=\E[%dB:\
  323.     :sf=\ED:sr=\EM:nw=\EE:\
  324.     :cm=\E[%i%d;%dH:ch=\E[%dG:cv=\E[%dd:\
  325.     :ho=\E[H:\
  326.     :ce=\E[0K:cd=\E[0J:cl=\E[H\E[0J:\
  327.     :al=\E[L:dl=\E[M:AL=\E[%dL:DL=\E[%dL:cs=\E[%i%d;%dr:\
  328.     :im=\E[4h:ei=\E[4l:ip#1:mi:dc=\E[P:DC=\E[%dP:\
  329.     :so=\E[7m:se=\E[27m:\
  330.     :us=\E[4m:ue=\E[24m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[0m:\
  331.     :ms:\
  332.     :vi=\E[25h:ve=\E[25m:\
  333.     :ta=^I:it#8:\
  334.     :pb#2400:\
  335.     :sc=\E7:rc=\E8:\
  336.     :hs:es:.ts=\E7\E[25;%dH\E[2K:.fs=\E8:\
  337.     :ts=\E[2$~\E[1$}\E[%dG\E[1K:fs=\E[0$}:ds=\E[1$~:\
  338.     :xo:\
  339.     :is=Kermit 320\n\E[2;4;l\E[12h\E[?4;6;7l\E[?25h\E[4i\E[?4i\E[0m\E[r\E[1$~:\
  340.     :rs=\E[!p\E[2;4;l\E[12h\E[?3;4;5;6;7l\E[?25h\E[4i\E[?4i\E[0m\E[r\E[1$~:\
  341.     :ps=\E[0i:pf=\E[4i:po=\E[5i:\
  342.     :kl=\E[D:kr=\E[C:ku=\E[A:kd=\E[B:\
  343.     :k0=\EOP:k1=\EOQ:k2=\EOR:k3=\EOS:
  344.  
  345. ka|kermit320-am:\
  346.     :am:\
  347.     :is=Kermit 320\n\E[2;4;l\E[12h\E[?4;6l\E[?7;25h\E[4i\E[?4i\E[0m\E[r\E[1$~:\
  348.     :rs=\E[!p\E[2;4;l\E[12h\E[?3;4;5;6l\E[?7;25h\E[4i\E[?4i\E[0m\E[r\E[1$~:\
  349.     :tc=kermit320core:
  350. ---(cut here)---
  351. Date: Mon, 21 Oct 91 15:53:59 ADT
  352. From: Tony Fitzgerald <jaf@jupiter.Sun.CSD.unb.ca>
  353. Subject: VT320 termcap entry
  354. To: JRD@CC.USU.EDU
  355. Cc: BPC@UNB.ca
  356.  
  357. Joe, 
  358. Brian suggested you might be interested in what I did for his VT320 emulation
  359. under Kermit.  Brian said it seems to work, but has not got an application to
  360. test it thoroughly.  Basically, your VT320 terminfo was the same as one that
  361. I had got off the net a few days before and had pretty much reverse translated
  362. to a termcap entry.  Terminfo had more facilities than termcap so it was not
  363. possible (at least with my limited experience) to translate some of the
  364. parameterized terminfo strings to termcap.  The strings I simply could not
  365. translate I finally omitted the key altogether (I think there were only two
  366. or three entries).
  367.  
  368. I then copied the new termcap entry into /etc/termcap and compiled the original
  369. terminfo entry into the terminfo data base.  We run SunOS 4.1.1 so applications
  370. have a choice of using termcap or terminfo.
  371.  
  372. I found that when I attempted to specify vt320 to the login terminal type
  373. prompt I got a complaint about the termcap entry being too large, moreover,
  374. every session which subsequently logged out received a message about a termcap
  375. entry being too large.  I then removed enough fields from the termcap entry
  376. to get rid of the messages.  It was not a scientific removal, simply take from
  377. the end being careful to preserve those things I thought might make a 
  378. difference to kermit in deciding whether the host believed it to be truly a
  379. vt320 (this was primarily the is= string).  I will include my full termcap
  380. entry below, perhaps someone who knows more about termcap/terminfo can make
  381. a better stab at fixing it up.
  382.  
  383. It probably means that applications using terminfo will work OK but those using
  384. termcap will find some things do not work properly.
  385.  
  386. > This is Joe's comment. Looks like we are not the only one
  387. > to have the problem and a proper terminfo and termcap
  388. > is still required. Looks like he gave us a modified
  389. > terminfo. Is this any help? Brian.
  390. >-------------------- Start of forwarded message --------------------
  391. >Brian,
  392. >    I can help a little. My Unix system (AT&T SVR4 2.1) also came with
  393. >a wierd vt320 setup and a setup of vt220 is a vt100 etc. So I made a few
  394. >quick changes to the terminfo entry for vt320's and that's reproduced below.
  395. >A termcap entry can be generated from this by hand (ugh). To get the initial
  396. >conditions right side up on a machine means editing how the machine chooses
  397. >to init the terminal (if any). We do need a better terminfo, and a complete
  398. >termcap, if someone has the time to construct and test them.
  399.  
  400. --  Original after reverse coding terminfo (note ts did not get translated and
  401.     I don't believe that sa gave the same result when I ran captoinfo that was
  402.     in the original terminfo.
  403.  
  404. # reverse coded from terminfo for vt320 received from network
  405. VO|vt320|vt320 emulating a vt100:\
  406.     :am:da:db:es:hs:5i:mi:ms:xn:xo:\
  407.     :co#80:it#8:lh#2:li#24:lm#0:lw#8:Nl#8:vt#3:\
  408.     :ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
  409.     :bl=^G:mb=\E[5m:md=\E[1m:vi=\E[?25l:cl=\E[H\E[J:ve=\E[?25h\E[?12l:cr=\r:\
  410.     :LE=\E[%dD:le=\b:DO=\E[%dB:do=\n:RI=\E[%dC:nd=\E[C:\
  411.     :cm=\E[%i%d;%dH:UP=\E[%dA:up=\E[A:vs=\E[?12;25h:DC=\E[%dP:dc=\E[P:\
  412.     :DL=\E[%dM:dl=\E[M:ec=\E[%dX:cd=\E[J:cd=\E[K:cb=\E[1K:eA=\E(B\E)0:\
  413.     :vb=\E[?5h$<200>\E[?5l:fs=\E[0$}:ho=\E[H:st=\EH:IC=\E[%d@:AL=\E[%dL:\
  414.     :al=\E[L:sf=\ED:mk=\E[5M:\
  415.     :is=\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E[?31l\E[?7h\E[>\E[?1l\E\sF\E[?4l\E[0m^O:\
  416.     :i3=\E(B\E)0:kb=\b:kC=\E[2J:kl=\E[D:kd=\E[B:kr=\E[C:ku=\E[A:kD=\E[P:\
  417.     :kL=\E[M:k1=\EOP:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:\
  418.     :F7=\E[31~:F8=\E[32~:F9=\E[33~:k2=\EOQ:FA=\E[34~:k3=\EOR:k4=\EOS:\
  419.     :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:@0=\E[1~:%1=\E[28~:kh=\E[H:\
  420.     :kI=\E[2~:kA=\E[L:kF=\E[S:kN=\E[6~:kP=\E[5~:%0=\E[29~:*6=\E[4~:\
  421.     :l1=pf1:l2=pf2:l3=pf3:l4=pf4:ps=\E[i:pf=\E[4i:po=\E[5i:nw=\EE:\
  422.     :mp=\E[1"q:rc=\E8:mr=\E[7m:sr=\EM:ae=^O:RA=\E[?7l:ei=\E[4l:se=\E[27m:\
  423.     :ue=\E[24m:r1=\E[50;7|\E[56;0|\E[53;0|\E[8;0|\E[?3l:sc=\E7:\
  424.     :sa=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t^N%e^O%;:\
  425.     :me=\E[0m^O:as=^N:SA=\E[?7h:im=\E[4h:so=\E[7m:us=\E[4m:ct=\E[3g:
  426. #    :ts=\E[1$}\E[1;%p1%{1}%+%dH:
  427.  
  428. -- Following is what is actually in /etc/termcap
  429. VO|vt320|vt320 emulating a vt100:\
  430.         :am:da:db:es:hs:5i:mi:ms:xn:xo:\
  431.         :co#80:it#8:lh#2:li#24:lm#0:lw#8:Nl#8:vt#3:\
  432.         :ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\
  433.         :bl=^G:mb=\E[5m:md=\E[1m:vi=\E[?25l:cl=\E[H\E[J:ve=\E[?25h\E[?12l:cr=\r:\
  434.         :LE=\E[%dD:le=\b:DO=\E[%dB:do=\n:RI=\E[%dC:nd=\E[C:\
  435.         :cm=\E[%i%d;%dH:UP=\E[%dA:up=\E[A:vs=\E[?12;25h:DC=\E[%dP:dc=\E[P:\
  436.         :DL=\E[%dM:dl=\E[M:ec=\E[%dX:cd=\E[J:cd=\E[K:cb=\E[1K:eA=\E(B\E)0:\
  437.         :vb=\E[?5h$<200>\E[?5l:fs=\E[0$}:ho=\E[H:st=\EH:IC=\E[%d@:AL=\E[%dL:\
  438.         :al=\E[L:sf=\ED:mk=\E[5M:\
  439.         :is=\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E[?31l\E[?7h\E[>\E[?1l\E\sF\E[?4l\E[0m^O:\
  440.         :kb=\b:kC=\E[2J:kl=\E[D:kd=\E[B:kr=\E[C:ku=\E[A:kD=\E[P:\
  441.         :kL=\E[M:k1=\EOP:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:\
  442.         :F7=\E[31~:F8=\E[32~:F9=\E[33~:k2=\EOQ:FA=\E[34~:k3=\EOR:k4=\EOS:\
  443.         :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:@0=\E[1~:%1=\E[28~:kh=\E[H:\
  444.         :kI=\E[2~:kA=\E[L:kF=\E[S:kN=\E[6~:kP=\E[5~:%0=\E[29~:*6=\E[4~:\
  445.         :l1=pf1:l2=pf2:l3=pf3:l4=pf4:ps=\E[i:pf=\E[4i:po=\E[5i:nw=\EE:
  446. ---(cut here)---
  447.