home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / k95source / vt220.ini < prev    next >
Text File  |  2020-01-01  |  7KB  |  131 lines

  1. ; File: VT220.INI
  2. ; Extended Keyboard definitions for Kermit 95.
  3. ; Works with any VT terminal type: VT52, VT100, VT102, VT220, or VT320. 
  4. ;
  5. ; If you don't like the key assignments made in this command file,
  6. ; you can edit this file to suit your tastes.
  7. ;
  8. ;   Frank da Cruz, Christine M. Gianone, and Jeffrey Altman
  9. ;   Columbia University, New York City
  10. ;   August 1995 
  11. ;
  12. if eq "\v(system)" "WIN32" goto MAPKEYS
  13. end 1 \v(cmdfile) only works with Kermit 95 on Windows 95 and Windows NT.
  14.  
  15. :MAPKEYS
  16. echo Executing \v(cmdfile) for full VT220 key mappings...
  17. if eq "" "\v(xversion)" forward GO    ; 1.1.5 and later
  18. echo
  19. echo NOTE: VT220.INI is not needed in Kermit 95 1.1.5 and later.
  20. echo See UPDATES.DOC for details.
  21. echo
  22. set mskermit keycodes off
  23.  
  24. :GO
  25.  
  26. ; The following are the default anyway, corresponding to the startup states
  27. ; of the DEC cursor and auxilliary keypads.
  28.  
  29. set terminal arrow-keys cursor   ; Arrow keys are in cursor mode by default
  30. set terminal keypad-mode numeric ; DEC keypad in numeric mode by default
  31. ;
  32. ;        Scan  Kverb         DEC Key            PC Key           PC Key Group
  33. ;
  34. set key  \400 \Kgold       ; PF1 (Gold) 95      Num Lock         Numeric keypad
  35. set key \4496 \Kgold       ; PF1 (Gold) NT      Num Lock         Numeric keypad
  36. set key \4143 \Kpf2        ; PF2        95      Keypad /         Numeric keypad
  37. set key \4463 \Kpf2        ; PF2        NT      Keypad /         Numeric keypad
  38. set key  \362 \Kpf3        ; PF3                Keypad *         Numeric keypad
  39. set key  \365 \Kpf4        ; PF4                Keypad -         Numeric keypad
  40.  
  41. ; DEC PF1-PF4 also assigned to PC F1-F4.
  42. ;
  43. set key \368  \Kgold       ; PF1 (Gold)         F1               Top Rank F key
  44. set key \369  \Kpf2        ; PF2                F2               Top Rank F key
  45. set key \370  \Kpf3        ; PF3                F3               Top Rank F key
  46. set key \371  \Kpf4        ; PF4                F4               Top Rank F key
  47.  
  48. ; DEC auxiliary keypad digit keys (two each, for Num Lock On and Off).
  49. ;
  50. set key \352  \Kkp0        ; KP 0               Keypad 0         Numeric keypad
  51. set key \301  \Kkp0        ; KP 0               Keypad 0         Numeric keypad
  52. set key \353  \Kkp1        ; KP 1               Keypad 1         Numeric keypad
  53. set key \291  \Kkp1        ; KP 1               Keypad 1         Numeric keypad
  54. set key \354  \Kkp2        ; KP 2               Keypad 2         Numeric keypad
  55. set key \296  \Kkp2        ; KP 2               Keypad 2         Numeric keypad
  56. set key \355  \Kkp3        ; KP 3               Keypad 3         Numeric keypad
  57. set key \290  \Kkp3        ; KP 3               Keypad 3         Numeric keypad
  58. set key \356  \Kkp4        ; KP 4               Keypad 4         Numeric keypad
  59. set key \293  \Kkp4        ; KP 4               Keypad 4         Numeric keypad
  60. set key \357  \Kkp5        ; KP 5               Keypad 5         Numeric keypad
  61. set key \268  \Kkp5        ; KP 5               Keypad 5         Numeric keypad
  62. set key \358  \Kkp6        ; KP 6               Keypad 6         Numeric keypad
  63. set key \295  \Kkp6        ; KP 6               Keypad 6         Numeric keypad
  64. set key \359  \Kkp7        ; KP 7               Keypad 7         Numeric keypad
  65. set key \292  \Kkp7        ; KP 7               Keypad 7         Numeric keypad
  66. set key \360  \Kkp8        ; KP 8               Keypad 8         Numeric keypad
  67. set key \294  \Kkp8        ; KP 8               Keypad 8         Numeric keypad
  68. set key \361  \Kkp9        ; KP 9               Keypad 9         Numeric keypad
  69. set key \289  \Kkp9        ; KP 9               Keypad 9         Numeric keypad
  70.  
  71. ; DEC auxiliary keypad punctuation and other keys.  Note that DEC keypads have
  72. ; four keys on the right, whereas IBM keypads have only three.  Thus the
  73. ; need for an Alt-key modifier on one of them.  Also note that while it might
  74. ; seem to make more sense to map DEC Keypad Minus to IBM Keypad Minus, most
  75. ; DEC users are accustomed to having PF1-PF4 across the top keypad row.
  76. ;
  77. ;   NOTE: In Windows 95, KP period with Num Lock on does not 
  78. ;   return a unique scan code.
  79. ;
  80. set key \366  \KkpDot      ; KP Period          Keypad Period    Numeric keypad
  81. set key \302  \KkpDot      ; KP Period          Keypad Period    Numeric keypad
  82. set key \4365 \KkpEnter    ; KP Enter           Keypad Enter     Numeric keypad
  83. set key \2411 \KkpMinus    ; KP Minus           Alt-Keypad-Plus  Numeric keypad
  84. set key \363  \KkpComa     ; KP Comma           Keypad Plus      Numeric keypad
  85.  
  86. ; DEC Cursor keys
  87. ;
  88. set key \4390 \KupArr      ; Up Arrow           Up Arrow         Cursor keypad
  89. set key \4392 \KdnArr      ; Down Arrow         Down Arrow       Cursor keypad
  90. set key \4391 \KrtArr      ; Right Arrow        Right Arrow      Cursor keypad
  91. set key \4389 \KlfArr      ; Left Arrow         Left Arrow       Cursor keypad
  92.  
  93. ; DEC Editing keys, VT220 and above.
  94. ;
  95. set key \6445 \KdecFind    ; Find               Alt-Insert      Gray keypad
  96. set key \6436 \KdecInsert  ; Insert             Alt-Home        Gray keypad
  97. set key \6433 \KdecRemove  ; Remove             Alt-Page-Up     Gray keypad
  98. set key \6446 \KdecSelect  ; Select             Alt-Delete      Gray keypad
  99. set key \6435 \KdecPrev    ; Previous Screen    Alt-End         Gray keypad
  100. set key \6434 \KdecNext    ; Next Screen        Alt-Page-Down   Gray keypad
  101.  
  102. set key \378  \KdecHelp    ; Help = F15         F11 (Can't use Print Screen,
  103. set key \379  \KdecDo      ; Do = F16           F12  Scroll Lock, or Pause)
  104.  
  105. ; DEC Function keys, VT220 and above.
  106. ;
  107. ;   DEC F5-F10 are on PC F5-F10.
  108. ;   DEC F11-F10 are on PC Alt-F1 through Alt-F10.
  109. ;
  110. set key \372  \Kbreak      ; F5 /Break          F5               Top Rank F key
  111. set key \373  \KdecF6      ; F6                 F6               Top Rank F key
  112. set key \374  \KdecF7      ; F7                 F7               Top Rank F key
  113. set key \375  \KdecF8      ; F8                 F8               Top Rank F key
  114. set key \376  \KdecF9      ; F9                 F9               Top Rank F key
  115. set key \377  \KdecF10     ; F10                F10              Top Rank F key
  116.  
  117. set key \2416 \KdecF11     ; F11 / Esc          Alt-F1           Top Rank F key
  118. set key \2417 \KdecF12     ; F12 / BS           Alt-F2           Top Rank F key
  119. set key \2418 \KdecF13     ; F13 / LF           Alt-F3           Top Rank F key
  120. set key \2419 \KdecF14     ; F14                Alt-F4           Top Rank F key
  121. set key \2420 \KdecF15     ; F15 / Help         Alt-F5           Top Rank F key
  122. set key \2421 \KdecF16     ; F15 / Do           Alt-F5           Top Rank F key
  123. set key \2422 \KdecF17     ; F17                Alt-F7           Top Rank F key
  124. set key \2423 \KdecF18     ; F18                Alt-F8           Top Rank F key
  125. set key \2424 \KdecF19     ; F19                Alt-F9           Top Rank F key
  126. set key \2425 \KdecF20     ; F20                Alt-F10          Top Rank F key
  127.  
  128. end ; of VT220.INI
  129.