home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bsd / src / termcap / termcap-amiga / map3270 < prev    next >
Text File  |  1993-09-30  |  30KB  |  1,026 lines

  1. # Copyright (c) 1989 The Regents of the University of California.
  2. # All rights reserved.
  3. #
  4. # Redistribution and use in source and binary forms, with or without
  5. # modification, are permitted provided that the following conditions
  6. # are met:
  7. # 1. Redistributions of source code must retain the above copyright
  8. #    notice, this list of conditions and the following disclaimer.
  9. # 2. Redistributions in binary form must reproduce the above copyright
  10. #    notice, this list of conditions and the following disclaimer in the
  11. #    documentation and/or other materials provided with the distribution.
  12. # 3. All advertising materials mentioning features or use of this software
  13. #    must display the following acknowledgement:
  14. #    This product includes software developed by the University of
  15. #    California, Berkeley and its contributors.
  16. # 4. Neither the name of the University nor the names of its contributors
  17. #    may be used to endorse or promote products derived from this software
  18. #    without specific prior written permission.
  19. #
  20. # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  21. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. # SUCH DAMAGE.
  31. #
  32. #    @(#)map3270    5.4 (Berkeley) 4/17/91
  33. #
  34.  
  35. # This file contains mappings between characters entered from the keyboard,
  36. # and 3270 keys, for use by programs (like tn3270) doing 3270 emulation
  37. # from unix.
  38. #
  39. # Inside the single quotes, a caret ("^") introduces a control character
  40. # sequence (rub out = ^?, by the way).  Also inside the single quotes,
  41. # a backslash ('\') introduces an escaped character.  Also, \n, \r, \t,
  42. # are all as in C, and \E is another way of representing escape.
  43. #
  44. #    NOTE that while we are defining lots of function, much of that
  45. # function (ie: local editing keys) may not yet be available from tn3270.
  46. #
  47. # Please e-mail changes to termcap@berkeley.edu or uunet!ucbvax!termcap.
  48. #
  49.  
  50. 3a | adm3a {
  51.     enter = '^m';
  52.     clear = '^z';
  53.  
  54.     nl = '^n';
  55.     tab = '^i';
  56.     btab = '^b' | '\E^i';
  57.     left = '^h';
  58.     right = '^l';
  59.     up = '^k';
  60.     down = '^j';
  61.     home = '^@';
  62.  
  63.     delete = '^d' | '^?';        # rubout
  64.     eeof = '^e';
  65.     einp = '^w';
  66.     insrt = '\E ';
  67.     dp = '^u';
  68.     fm = '^y';
  69.  
  70.     # pf keys
  71.     pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
  72.     pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
  73.     pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E:'; pfk12 = '\E-';
  74.     pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
  75.     pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
  76.     pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
  77.  
  78.     # program attention keys
  79.     pa1 = '^p1';
  80.     pa2 = '^p2';
  81.     pa3 = '^p3';
  82.  
  83.     # other keys
  84.     cursel = '\E.';
  85.     centsign = '^\';
  86.  
  87.     # local control keys
  88.  
  89.     reset = '^t';    # well, there is a little confusion here...
  90.     master_reset = '^g';
  91.     flinp = '^x';
  92.     reshow = '^v';    # redisplay screen
  93.     escape = '^c';    # escape to telnet command mode
  94.  
  95.     # local editing keys
  96.     settab = '\E;';
  97.     deltab = '\E\'';
  98.     clrtab = '\E+';
  99.     setmrg = '\E(';
  100.     sethom = '\E!';
  101.     coltab = '\Ei';
  102.     colbak = '\Eb';
  103.     indent = '\El';
  104.     undent = '\Eh';
  105.  
  106. } # end of adm3a
  107.  
  108. 920c | tvi920c | 920b {    # tvi920c definitions...
  109.  
  110.     # command keys
  111.     enter = '^m';
  112.     clear = '^z';
  113.  
  114.     # cursor movement keys
  115.     nl = '^^' | '^n';        # home
  116.     tab = '^i';
  117.     btab = '^b' | '\E^i';
  118.     left = '^h';
  119.     right = '^l';
  120.     up = '^k';
  121.     down = '^j';
  122.     home = '^@';
  123.  
  124.     # edit control keys
  125.     delete = '^?' | '^d';    # delete
  126.     eeof = '^e';
  127.     einp = '^w';
  128.     insrt = '\E ';
  129.     dp = '^u';
  130.     fm = '^y';
  131.  
  132.     # program function keys
  133.  
  134.     # F1 to F11
  135.     pfk1 = '^a@^m'; pfk2 = '^aA^m'; pfk3 = '^aB^m'; pfk4 = '^aC^m';
  136.     pfk5 = '^aD^m'; pfk6 = '^aE^m'; pfk7 = '^aF^m'; pfk8 = '^aG^m';
  137.     pfk9 = '^aH^m'; pfk10 = '^aI^m'; pfk11 = '^aJ^m';
  138.  
  139.     # SHIFT-F11
  140.     pfk12 = '^aj^m';
  141.  
  142.     # ESC F1 to ESC F11
  143.     pfk11 = '\E^a@^m'; pfk12 = '\E^aA^m';
  144.     pfk13 = '\E^aB^m'; pfk14 = '\E^aC^m'; pfk15 = '\E^aD^m'; pfk16 = '\E^aE^m';
  145.     pfk17 = '\E^aF^m'; pfk18 = '\E^aG^m'; pfk19 = '\E^aH^m'; pfk20 = '\E^aI^m';
  146.     pfk21 = '\E^a`^m';
  147.  
  148.     # ESC SHIFT-F1 to ESC SHIFT-F4
  149.     pfk21 = '\E^a`^m'; pfk22 = '\E^aa^m'; pfk23 = '\E^ab^m'; pfk24 = '\E^ac^m';
  150.  
  151.     pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
  152.     pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
  153.     pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E-'; pfk12 = '\E=';
  154.     pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
  155.     pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
  156.     pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
  157.  
  158.     # program attention keys
  159.  
  160.     pa1 = '^a`^m' | '^p1';
  161.     pa2 = '^aa^m' | '^p2';
  162.     pa3 = '^ab^m' | '^p3';
  163.  
  164.     # miscellaneous 3270 keys
  165.  
  166.     cursel = '\E.';
  167.     centsign = '^\';
  168.  
  169.     # local control keys
  170.  
  171.     reset = '^t';        # there is some confusion here...
  172.     master_reset = '^g';
  173.     flinp = '^x';
  174.     reshow = '^v';
  175.     escape = '^c';    # escape to telnet command mode
  176.  
  177.     # local editing keys
  178.  
  179.     settab = '\E;';
  180.     deltab = '\E\'';
  181.     clrtab = '\E:';
  182.     setmrg = '\E*';
  183.     sethom = '\E!';
  184.     coltab = '\Ei' | '\EI';
  185.     colbak = '\Eb' | '\EB';
  186.     indent = '\El' | '\EL';
  187.     undent = '\Eh' | '\EH';
  188. } # end of tvi920c table...
  189.  
  190. 925 | tvi925 | 925vb | tvi925vb | televideo 925 {
  191.  
  192.     # command keys
  193.  
  194.     enter = '^m';
  195.     clear = '^z';
  196.  
  197.     # cursor movement keys
  198.  
  199.     nl = '^j' | '^n';
  200.     tab = '^i';
  201.     btab = '\EI';
  202.     left = '^h';
  203.     right = '^l';
  204.     up = '^k';
  205.     down = '^v';
  206.     home = '^^';
  207.  
  208.     # edit control keys
  209.  
  210.     delete = '^?';    # that's rubout...
  211.     eeof = '^e';
  212.     einp = '^w';
  213.     insrt = '\E ' | '\EW';
  214.  
  215.     # program function keys
  216.  
  217.     pfk1 = '^a@^m';
  218.     pfk2 = '^aA^m';
  219.     pfk3 = '^aB^m';
  220.     pfk4 = '^aC^m';
  221.     pfk5 = '^aD^m';
  222.     pfk6 = '^aE^m';
  223.     pfk7 = '^aF^m';
  224.     pfk8 = '^aG^m';
  225.     pfk9 = '^aH^m';
  226.     pfk10 = '^aI^m';
  227.     pfk11 = '^aJ^m';
  228.     pfk12 = '\EQ';
  229.     pfk13 = '\E^a@^m';
  230.     pfk14 = '\E^aA^m';
  231.     pfk15 = '\E^aB^m';
  232.     pfk16 = '\E^aC^m';
  233.     pfk17 = '\E^aD^m';
  234.     pfk18 = '\E^aE^m';
  235.     pfk19 = '\E^aF^m';
  236.     pfk20 = '\E^aG^m';
  237.     pfk21 = '\E^aH^m';
  238.     pfk22 = '\E^aI^m';
  239.     pfk23 = '\E^aJ^m';
  240.     pfk24 = '\E\EQ';
  241.  
  242.     pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
  243.     pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
  244.     pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E-'; pfk12 = '\E=';
  245.     pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
  246.     pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
  247.     pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
  248.  
  249.     # program attention keys
  250.  
  251.     pa1 = '^a`^m';
  252.     pa2 = '^aa^m';
  253.     pa3 = '^ab^m';
  254.  
  255.     # other keys
  256.     centsign = '^\';
  257.  
  258.     # local control keys
  259.  
  260.     reset = '^t';        # again, there is some confusion here...
  261.     master_reset = '^g';
  262.     flinp = '^x';
  263.     reshow = '^b';
  264.     escape = '^c';    # escape to telnet command mode
  265.  
  266. # local editing keys
  267.  
  268.     settab = '\EY';
  269.     deltab = '\Ey';
  270.     clrtab = '\E:';
  271.     setmrg = '\ET';
  272.     sethom = '\Et';
  273.     coltab = '^p';
  274.     colbak = '^o';
  275.     indent = '\ER';
  276.     undent = '\EE';
  277. }
  278.  
  279.  
  280. 924 | tvi924 {
  281.  
  282.     # command keys
  283.  
  284.     enter = '^m';
  285.     clear = '^z';
  286.  
  287.     # cursor movement keys
  288.  
  289.     nl = '^j';
  290.     tab = '^i';
  291.     btab = '\EI';
  292.     left = '^h';
  293.     right = '^l';
  294.     up = '^k';
  295.     down = '^v';
  296.     home = '^^';
  297.  
  298.     # edit control keys
  299.  
  300.     delete = '^?';    # that's rubout...
  301.     eeof = '^e';
  302.     einp = '^w';
  303.     insrt = '\E ' | '\EW';
  304.     dp = '^u';
  305.     fm = '^y';
  306.  
  307.     # program function keys
  308.  
  309.     pfk1