home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / misc / test / 14524 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  7.7 KB

  1. Path: sparky!uunet!pipex!warwick!uknet!mcsun!sunic!fuw.edu.pl!cyfronet!galaxy.uci.agh.edu.pl!p403l.uci.agh.edu.pl!Test_News
  2. From: Test_News@uci.agh.edu.pl (News testing account)
  3. Newsgroups: misc.test
  4. Subject: test 5
  5. Message-ID: <Test_News.8.725042571@uci.agh.edu.pl>
  6. Date: 22 Dec 92 16:42:52 GMT
  7. Organization: UCI AGH
  8. Lines: 245
  9. NNTP-Posting-Host: p403l.uci.agh.edu.pl
  10.  
  11. ;  default keymap table... 11/12/90  This is for VT102 screens only,
  12. ;  not 3278 screens.
  13.  
  14. ; lines beginning w/ ; or blank lines are ignored.
  15.  
  16. ; format of input lines is:
  17. ; set key [optional mode char] keynumber keydefinition
  18. ; where mode chars can be
  19. ;        +     For Application keypad expansion only
  20. ;     -     For nonapplication keypad expansion only
  21. ;     $     For cursor set mode  (ugh!)
  22. ;           If blank or missing, then the expansion is for any mode
  23. ;
  24. ; keynumbers are HEXADECIMAL numbers (sorry folks, parser is simple)
  25. ;
  26. ; keydefinition is any non blank text up to end of line or ';', including
  27. ; trailing blanks. TRAILING BLANKS ARE SIGNIFIGANT!
  28. ;
  29. ; To include a ';' in your string, if you don't have a comment also, use a \
  30. ;
  31. ; A key definition can not be longer than 255 characters.
  32. ;
  33. ; NO TABS ALLOWED EXCEPT IN KEY DEFINITION.. (sorry, simple, small code)
  34. ;
  35. ; if you need an expansion beginning w/ blanks, make the first sequence be
  36. ; \040 which is octal space
  37. ;
  38. ; Recognized escapes are:
  39. ; \nnn  (all three digits required)  expands to the octal char.
  40. ;        If your session is not open in binary mode, you may see 7-bit
  41. ;     truncation
  42. ;
  43. ;  \r         return
  44. ;  \n        newline
  45. ;  \e        Escape (\033)
  46. ;  \\        The \ character
  47. ;  \;        The ; character
  48. ;  \"MACRO"       Substitutes the specified macro... (internal only in this version)
  49. ;
  50. ;
  51. ; Additional commands...
  52. ;
  53. ; You may also include the commands
  54. ;    extended   (means process subsequently encountered keys only if
  55. ;             running on an extended keyboard)
  56. ;
  57. ;    notextended (converse of above)
  58. ;
  59. ; mini-example
  60. ;
  61. ; extended
  62. ; set key + 110d  \e?2
  63. ; set key - 110d  \e?0;  this is a comment, notice no extra spaces after 0
  64. ; set key   10f   \010
  65. ; notextended
  66. ; set key 11c  \r
  67. ;
  68. ; The above example sets the keypad enter key to return two different
  69. ; values depending on whether application mode is set.
  70. ; (also sets the tab key to send a tab)
  71. ; otherwise, on non extended keyboards, send <CR> when keypad enter is pressed
  72.  
  73. ; ### System Macro examples. ###
  74. ; this section demonstrates the use of the system macro bindings
  75. ; you should also look at: sample3.scr, sample3.def, sample3.tbl
  76.  
  77. ;    set key 968 \"SYS_TELNET"(omnigate)
  78. ; The above sets ALT-F1 to telnet to omnigate
  79.  
  80. ;    set key 969 echo My IP is \"SYS_MYIP" and I like it\n"
  81. ; The above set ALT-F3 to print out a line including the current IP address
  82.  
  83. ;    set key 96b \"SYS_SCRIPT"(sample.scr)
  84. ; The above binds a script to ALT-F4
  85.  
  86. ;    set key 968 \"SYS_RLOGIN"(128.153.4.2)
  87. ; ALT-F1 does an rlogin to an ip address
  88.  
  89. ;    set key 968 \"SYS_SHOW"(omnigate)
  90. ; ALT-F1 will cause the session named 'omnigate' to be displayed on screen
  91. ; if it exists.
  92.  
  93. ;     set key 968 \"SYS_KEYMAP(mykey.tbl)
  94. ; ALT-F1 causes the current session keymap to be replaced with mykey.tbl
  95.  
  96. ;    set key 968 \"SYS_KEYMAP(default,mykey.tbl)
  97. ; now Alt-F1 causes the system-wide default key table to be replaced with
  98. ; mykey.tbl (as if  name=default,keymap=mykey.tbl, was in config.tel)
  99.  
  100. ;     set key 92d \"SYS_CLOSE"(noask)
  101. ; Redefines ALT-X to not ask if you want to close the current session.
  102.  
  103. ;------------------------  defaults begin here ------------------------------
  104. ; first defaults are for either extended or non-extended
  105. ;
  106. ; ** define commands for ALT keys, etc
  107. set key 91e \"SYS_TELNET";     ALT-A - add a telnet session
  108. set key 92e \"SYS_CAPTURE";    ALT-C - toggle capture screen mode
  109. set key 920 \"SYS_DUMP";    ALT-D - dump screen
  110. set key 912 \"SYS_DOSESCAPE";    ALT-E - escape to dos
  111. set key 922 \"SYS_GRAPHMENU";    ALT-G - graphics menu
  112. set key 923 \"SYS_HELP";    ALT-H - show help screen
  113. set key 917 \"SYS_MYIP";    ALT-I - send my ip address
  114. set key 925 \"SYS_TEL_ERASE_CHAR"; ALT-K - send telnet erase character command
  115. set key 926 \"SYS_LASTSESS";    ALT-L - switch to previous session screen
  116. set key 932 \"SYS_CONSOLE";    ALT-M - show console screen
  117. set key 931 \"SYS_NEXTSESS";    ALT-N - switch to next session screen
  118. set key 918 \"SYS_TEL_AO";    ALT-O - send 'abort output' telnet command
  119. set key 919 \"SYS_PARMS";    ALT-P - set window parameters
  120. set key 910 \"SYS_TEL_AYT";     ALT-Q - send telnet 'are you there' command
  121. set key 913 \"SYS_VTRESET";     ALT-R - reset vt100 screen
  122. set key 91f \"SYS_TEL_SKIP";    ALT-S - discard incoming chars for a while
  123. set key 914 \"SYS_FTP";        ALT-T - send ftp myaddress
  124. set key 916 \"SYS_TEL_ERASE_LINE"; ALT-U - send telnet erase line command
  125. set key 92f \"SYS_RSHELL";    ALT-V - add an rshell session
  126. set key 911 \"SYS_FTPPASSWD";   ALT-W - send internal ftp password
  127. set key 92d \"SYS_CLOSE";       ALT-X - close current session window
  128. set key 915 \"SYS_TEL_IP";    ALT-Y - send telnet 'interrupt process' command
  129. set key 92c \"SYS_RLOGIN";    ALT-Z - add an rlogin session
  130. set key 577 \"SYS_TEKINIT";    CTRL-HOME - reset tek screen, enter tek mode
  131. set key 982 \"SYS_SCRIPT";    ALT-MINUS - begin or end a script
  132. set key 968 anonymous\n;        ALT-F1 - anonymous
  133. set key 969 aksamit@uci.agh.edu.pl\n; ALT-F2 - my address
  134. set key 96a \"SYS_ABORT";       ALT-F3 - abort program
  135. set key 970 \"SYS_NETSTAT";     ALT-F9 - display tcp connection status in console window
  136.  
  137. ; ok, now do something nice with the PF keys
  138. ; Simplest thing is map PF1 - PF4 to F1-F4
  139. ; in any mode
  140. set key 13b \eOP;        F1=PF1
  141. set key 13c \eOQ;        F2=PF2
  142. set key 13d \eOR;        F3=PF3
  143. set key 13e \eOS;        F4=PF4
  144. set key 13f \e[16~;        F5=CSI 17
  145. set key 140 \e[17~;        F6
  146. set key 141 \e[18~;        F7
  147. set key 142 \e[19~;        F8
  148. set key 143 \e[20~;        F9
  149. set key 144 \e[21~;        F10
  150. set key 354 \e[22~;        SF1
  151. set key 355 \e[23~;        SF2
  152. set key 356 \e[24~;        SF3
  153. set key 357 \e[25~;        SF4
  154. set key 358 \e[26~;        SF5
  155. set key 359 \e[27~;        SF6
  156. set key 35a \e[28~;        SF7
  157. set key 35b \e[29~;        SF8
  158. set key 35c \e[30~;        SF9
  159. set key 35d \e[31~;        SF10
  160.  
  161. set key 152 \eOp
  162. set key 153 \177
  163. set key 14f \eOq
  164. set key 151 \eOs
  165. set key 14c \eOu
  166. set key 147 \eOw
  167. set key 149 \eOy
  168.  
  169. set key 352 0
  170. set key 353 .
  171. set key 34f 1
  172. set key 350 2
  173. set key 351 3
  174. set key 34b 4
  175. set key 34c 5
  176. set key 34d 6
  177. set key 347 7
  178. set key 348 8
  179. set key 349 9
  180. set key 34e +
  181. set key 34a -
  182.  
  183. set key 148 \e[A
  184. set key 150 \e[B
  185. set key 14b \e[D
  186. set key 14d \e[C
  187. ; and for cursor set mode
  188. set key $ 148 \eOA
  189. set key $ 150 \eOB
  190. set key $ 14b \eOD
  191. set key $ 14d \eOC
  192.  
  193. notextended
  194.  
  195.  
  196. ; finally, the rest of the keypad is mapped to alt-0 through alt-9
  197. ; but only in application mode
  198. set key + 981 \eOp
  199. set key + 978 \eOq
  200. set key + 979 \eOr
  201. set key + 97a \eOs
  202. set key + 97b \eOt
  203. set key + 97c \eOu
  204. set key + 97d \eOv
  205. set key + 97e \eOw
  206. set key + 97f \eOx
  207. set key + 980 \eOy
  208.  
  209. ; now set the dash as the keypad - key in applc mode, or - in non appl mode
  210. set key + 14a \eOm
  211. set key - 14a -
  212. set key 34a -
  213. ; set plus as comma
  214. set key + 14e \eOn
  215. set key - 14e +
  216. set key 34e +
  217. ; set shifted plus to keypad ENTER in application mode, or CR in non appl mode
  218. set key + 34e \eOM
  219. set key - 34e 13
  220. ; finally, set the * as the comma key
  221. set key + 137 \eOl
  222. set key - 137 ,
  223. set key 337 ,
  224.  
  225. ; begin extended keyboard stuff
  226.  
  227. extended
  228.  
  229. ; now set the grey cursor keys... non-cursor set mode
  230. set key 1148 \e[A
  231. set key 1150 \e[B
  232. set key 114d \e[C
  233. set key 114b \e[D
  234. ; grey keys in cursor set mode
  235. set key $ 1148 \eOA
  236. set key $ 1150 \eOB
  237. set key $ 114d \eOC
  238. set key $ 114b \eOD
  239.  
  240. set key 1152 \eOp
  241. set key 1147 \eOw
  242. set key 1149 \eOy
  243. set key 1153 \177
  244. set key 1151 \eOs
  245. set key 114c \eOu
  246. set key 114f \eOq
  247.  
  248. ; set the keypad keys in non application mode to just send numbers and dash,etc
  249. set key 112f /
  250. set key 132f /
  251. set key - 110d \r
  252. ; the enter key sends something special in appl mode
  253. set key + 110d \eOM
  254. set key 130d \r
  255.