home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / mskermit / msivt3.ini < prev    next >
Text File  |  2020-01-01  |  9KB  |  230 lines

  1. ; VT300.INI - MS-DOS Kermit keyboard setup for DEC VT200-300 series terminals.
  2. ; Originally contributed by Kevin Lowey, University of Saskatchewan Computing
  3. ; Services.  For use only with MS-DOS Kermit 3.10 or later.  Adapted for new
  4. ; features of version 3.10 at Columbia University.  Further modified by Kevin
  5. ; Lowey to correct some problems in the original keyboard layouts.  etc etc.
  6. ;
  7. ; Two different setups are provided, one for the 101-key extended PC keyboard,
  8. ; one for the 88-key original keyboard.     This file (when used with MS-DOS
  9. ; Kermit 3.10 or later) automatically determines which kind of keyboard you
  10. ; have.     See the comments in the file to learn the key assignments.
  11. ;
  12. ; NOTE: The key assignments made by this file comprise just one of an infinite
  13. ; number of possible arrangements.  No two people agree about how best to map
  14. ; DEC keyboard keys to IBM PC keys.  If the mappings done by this file do not
  15. ; suit your taste, feel free to make modifications.
  16. ;
  17. ; Usage: TAKE VT300.INI (specify complete path if necessary).
  18. ; Or put this TAKE command in your MSCUSTOM.INI file.
  19. ; If you will be emulating a VT220 or VT320 terminal on a DEC VAX computer 
  20. ; VMS 5.0 or later, and you have an 8-bit (no-parity) connection to it,
  21. ; also uncomment or otherwise issue the following command:
  22. ;
  23. ;;; SET TERMINAL DISPLAY 8
  24.  
  25. ; If you need to use the ISO Latin-1 character set in the 7-bit environment
  26. ; with the host sending Shift-In/Shift-Out (Ctrl-N/Ctrl-O) to switch between
  27. ; ASCII and special characters, uncomment the following command:
  28. ;
  29. ;;; set terminal character-set latin1 G1
  30.  
  31. ; Standard VT terminal settings
  32. ;
  33. set term tabs at 1:8
  34.  
  35. ; Version test
  36. ;
  37. if not < version 310 goto systest
  38. echo VT300.INI requires MS-DOS Kermit Version 3.10 or later.
  39. pop
  40.  
  41. ; System check
  42. ;
  43. :systest
  44. if eq "\v(platform)" "IBM-PC" goto kbtest
  45. echo VT300.INI is only for IBM PCs, PS/2s, and compatibles.
  46. pop
  47.  
  48. ; Automatic keyboard test
  49. ;
  50. :kbtest
  51. set key on
  52. asg \%9 \v(keyboard)
  53. if eq "\%9" "88" goto kb88
  54. if eq "\%9" "101" goto kb101
  55. if numeric \%9 if > \%9 101 goto kb101
  56. echo Keyboard type "\%9" not supported by VT300.INI.
  57. pop
  58.  
  59. :kb101
  60. echo VT300.INI: IBM-101 Extended Keyboard Setup...
  61. ;
  62. ; IBM-101 Extended Keyboard Definitions
  63. ;                IBM KEY         DEC KEY
  64. ; Numeric Keypad
  65. ; There are two definitions for each of the numeric keypad keys,
  66. ; one for when <NUM-LOCK> is pressed, and one when it isn't.
  67. set key \850 \kkp0      ; Keypad 0 (Numlock)     Keypad 0
  68. set key \338 \kkp0      ; Keypad 0 (Normal)     Keypad 0
  69. set key \847 \kkp1      ; Keypad 1 (Numlock)     Keypad 1
  70. set key \335 \kkp1      ; Keypad 1 (Normal)     Keypad 1
  71. set key \848 \kkp2      ; Keypad 2 (Numlock)     Keypad 2
  72. set key \336 \kkp2      ; Keypad 2 (Normal)     Keypad 2
  73. set key \849 \kkp3      ; Keypad 3 (Numlock)     Keypad 3
  74. set key \337 \kkp3      ; Keypad 3 (Normal)     Keypad 3
  75. set key \843 \kkp4      ; Keypad 4 (Numlock)     Keypad 4
  76. set key \331 \kkp4      ; Keypad 4 (Normal)     Keypad 4
  77. set key \844 \kkp5      ; Keypad 5 (Numlock)     Keypad 5
  78. set key \332 \kkp5      ; Keypad 5 (Normal)     Keypad 5
  79. set key \845 \kkp6      ; Keypad 6 (Numlock)     Keypad 6
  80. set key \333 \kkp6      ; Keypad 6 (Normal)     Keypad 6
  81. set key \839 \kkp7      ; Keypad 7 (Numlock)     Keypad 7
  82. set key \327 \kkp7      ; Keypad 7 (Normal)     Keypad 7
  83. set key \840 \kkp8      ; Keypad 8 (Numlock)     Keypad 8
  84. set key \328 \kkp8      ; Keypad 8 (normal)     Keypad 8
  85. set key \841 \kkp9      ; Keypad 9 (Numlock)     Keypad 9
  86. set key \329 \kkp9      ; Keypad 9 (Normal)     Keypad 9
  87.  
  88. set key \334  \kkpminus      ; Keypad +         Keypad -
  89. set key \2382 \kkpcoma      ; ALT Keypad +     Keypad ,
  90. set key \851  \kkpdot      ; Keypad . (Numlock)     Keypad .
  91. set key \339  \kkpdot      ; Keypad . (normal)     Keypad .
  92. set key \4365 \Kkpenter      ; Keypad Enter     Keypad Enter
  93.  
  94.               ; F1             PF1 (default Kermit)
  95.               ; Use GOLD.COM to make Num Lock work as F1/PF1/Gold.
  96. set key \325 \kPF1        ; This works with WPGGOLD.COM.
  97.  
  98. set key \4399 \kPF2      ; Keypad /         PF2
  99. set key \311  \kPF3      ; Keypad *         PF3
  100. set key \330  \kPF4      ; Keypad -         PF4 Key
  101.  
  102. ; F1 thru F20 keys      IBM             DEC
  103. set key \1374 \kholdscrn  ; Control-F1         F1
  104. set key \1375 \kprtscn      ; Control-F2         F2
  105. set key \1376 \khelp      ; Control-F3         Setup
  106. ; No Definition          ; Control-F4         F4
  107.  
  108. ; Default mapping      ; F1             Gold (PF1)
  109. ; Default Mapping      ; F2             PF2
  110. ; Default Mapping      ; F3             PF3
  111. ; Default Mapping      ; F4             PF4
  112. set key \319 \kbreak      ; F5             Break
  113. set key \320 \Kdecf6      ; F6             DEC F6
  114. set key \321 \Kdecf7      ; F7             DEC F7
  115. set key \322 \KdecF8      ; F8             DEC F8
  116. set key \323 \KdecF9      ; F9             DEC F9
  117. set key \324 \KdecF10      ; F10             DEC F10
  118. set key \389 \kdechelp      ; F11             DEC Help
  119. set key \390 \kdecdo      ; F12             DEC Do
  120. set key \2408 \kdecF11      ; Alt-F1         F11
  121. set key \2409 \kdecF12      ; Alt-F2         F12
  122. set key \2410 \kdecF13      ; Alt-F3         F13
  123. set key \2411 \kdecF14      ; Alt-F4         F14
  124. set key \2412 \kdechelp      ; Alt-F5         Help (F15)
  125. set key \2413 \kdecdo      ; Alt-F6         Do (F16)
  126. set key \2414 \kdecF17      ; Alt-F7         F17
  127. set key \2415 \kdecF18      ; Alt-F8         F18
  128. set key \2416 \kdecF19      ; Alt-F9         F19
  129. set key \2417 \kdecF20      ; Alt-F10         F20
  130.  
  131. ; Cursor Keypad
  132. set key \4434 \kdecinsert ; Gray Insert         DEC Insert Here
  133. set key \4435 \kdecRemove ; Gray Delete         DEC Remove
  134. set key \4423 \kdecFind      ; Gray Home         DEC Find
  135. set key \4431 \KdecSelect ; Gray End         DEC Select
  136. set key \4425 \KDecPrev      ; Gray Page Up     DEC Prev Screen
  137. set key \4433 \KDecNext      ; Gray Page Down     DEC Next Screen
  138.  
  139. if < version 314 pop      ; User Defined Keys (UDKs), new to version 3.14.
  140.  
  141. ; These are available as verbs \KudkF6..F20, but it's up to you to decide
  142. ; what keys or key combinations to assign them to.
  143.  
  144. pop
  145.  
  146. :kb88
  147. echo VT300.INI: IBM-88 Original Keyboard Setup...
  148. ;
  149. ; Key Definitions:
  150. ;
  151. ; The numeric keypad is mapped as follows:
  152. ;
  153. ;     IBM Function              VT100 Keys
  154. ;     Normal      Shifted        On the Numeric Keypad
  155. ;  -------------------------      -------------------------
  156. ;  |  F1 |  F2 | SF1 | SF2 |      | PF1 | PF2 | PF3 | PF4 |
  157. ;  |-----+-----+-----+-----|      |-----+-----+-----+-----|
  158. ;  |  F3 |  F4 | SF3 | SF4 |      |  7    |  8  |     9  |  -  |
  159. ;  |-----+-----+-----+-----|      |-----+-----+-----+-----|
  160. ;  |  F5 |  F6 | SF5 | SF6 |      |  4    |  5  |     6  |  ,  |
  161. ;  |-----+-----+-----+-----|      |-----+-----+-----+-----|
  162. ;  |  F7 |  F8 | SF7 | SF8 |      |  1    |  2  |     3  |      |
  163. ;  |-----------+-----|-----|      |-----------+-----|ENTER|
  164. ;  |  F9 | F10 | SF9 | F10 |      |    0     |     .  |      |
  165. ;  -------------------------      -------------------------
  166. ;
  167. ; F9  is defined as DEC's Keypad-0 key.
  168. ; F10 is defined as DEC's Keypad-Enter key.
  169. ; SF9 is defined as DEC's Keypad-DOT key.
  170. ;
  171. ; The DEC F1 to F10 keys are mapped to the PC's Ctrl-F1 through Ctrl-F10 keys.
  172. ; The DEC F11 to F20 keys are mapped to the PC's Alt-F1 to Alt-F10 keys.
  173. ;
  174. ;  Definition            PC key       DEC key
  175. set key \315 \kpf1      ; F1           PF1
  176. set key \316 \kpF2      ; F2           PF2
  177. set key \317 \kkp7      ; F3           Keypad 7
  178. set key \318 \kkp8      ; F4           Keypad 8
  179. set key \319 \kkp4      ; F5           Keypad 4
  180. set key \320 \kkp5      ; F6           Keypad 5
  181. set key \321 \kkp1      ; F7           Keypad 1
  182. set key \322 \kkp2      ; F8           Keypad 2
  183. set key \323 \kkp0      ; F9           Keypad 0
  184. set key \324 \kkpenter      ; F10           Keypad Enter
  185.  
  186. set key \852 \kpf3      ; Shift-F1       PF3
  187. set key \853 \kpf4      ; Shift-F2       PF4
  188. set key \854 \kkp9      ; Shift-F3       Keypad 9
  189. set key \855 \kkpminus      ; Shift-F4       Keypad Minus
  190. set key \856 \kkp6      ; Shift-F5       Keypad 6
  191. set key \857 \kkpcoma      ; Shift-F6       Keypad Comma
  192. set key \858 \kkp3      ; Shift-F7       Keypad 3
  193. set key \859 \kkpenter      ; Shift-F8       Keypad Enter
  194. set key \860 \kkpdot      ; Shift-F9       Keypad Dot
  195. set key \861 \kkpenter      ; Shift-F10       Keypad Enter (duplicate)
  196.  
  197. set key \1374 \kholdscrn  ; Control-F1       F1
  198. set key \1375 \kprtscn      ; Control-F2       F2
  199. set key \1376 \khelp      ; Control-F3       Setup
  200. ; No Definition          ; Control-F4       F4
  201. set key \1378 \kbreak      ; Control-F5       F5
  202. set key \1379 \kdecF6      ; Control-F6       F6
  203. set key \1380 \kdecF7      ; Control-F7       F7
  204. set key \1381 \kdecF8      ; Control-F8       F8
  205. set key \1382 \kdecF9      ; Control-F9       F9
  206. set key \1383 \kdecF10      ; Control-F10       F10
  207.  
  208. set key \2408 \kdecF11      ; Alt-F1       F11
  209. set key \2409 \kdecF12      ; Alt-F2       F12
  210. set key \2410 \kdecF13      ; Alt-F3       F13
  211. set key \2411 \kdecF14      ; Alt-F4       F14
  212. set key \2412 \kdechelp      ; Alt-F5       Help (F15)
  213. set key \2413 \kdecdo      ; Alt-F6       Do (F16)
  214. set key \2414 \kdecF17      ; Alt-F7       F17
  215. set key \2415 \kdecF18      ; Alt-F8       F18
  216. set key \2416 \kdecF19      ; Alt-F9       F19
  217. set key \2417 \kdecF20      ; Alt-F10       F20
  218.  
  219. ; DEC cursor keypad equivalents:
  220. set key \327  \kdecfind      ; Home       Find
  221. set key \335  \kdecselect ; End           Select
  222. set key \329  \kdecprev      ; PgUp       Prev Screen
  223. set key \337  \kdecnext      ; PgDn       Next Screen
  224. set key \330  \kdechelp      ; Keypad -       Help
  225. set key \334  \kdecdo      ; Keypad +       Do
  226. set key \338  \kdecinsert ; Insert       Insert Here
  227. set key \339  \kdecremove ; Del           Remove
  228.  
  229. ; End of VT300.INI
  230.