home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc190.zip / ckovtk2.ini < prev    next >
Text File  |  1994-08-25  |  7KB  |  123 lines

  1. ; File: CKOVTK2.INI
  2. ; Extended Keyboard definitions for OS/2 C-Kermit 5A(190)
  3. ; using keyboard verbs exactly compatible with MS-DOS Kermit's.
  4. ; Works with any VT terminal type: VT52, VT100, VT102, VT220. 
  5. ;
  6. ; If you don't like the key assignments made in this command file,
  7. ; feel free to change them to suit your tastes.
  8. ;
  9. ;   Frank da Cruz and Christine M. Gianone
  10. ;   Columbia University, New York City
  11. ;   February 28, 1994
  12. if not eq "\v(program)" "C-Kermit" -
  13.   end 1 \v(cmdfile) can be used only by C-Kermit.
  14. if not eq "\v(system)" "OS/2" -
  15.   end 1 \v(cmdfile) can be used only by OS/2 C-Kermit.
  16. if < \v(version) 501190 -
  17.   end 1 \v(cmdfile) requires C-Kermit 5A(190) or later.
  18.  
  19. echo Executing \v(cmdfile) for full VT220 key mappings...
  20.  
  21. ; The following are the default anyway, corresponding to the startup states
  22. ; of the DEC cursor and auxilliary keypads.
  23.  
  24. set terminal arrow-keys cursor   ; Arrow keys are in cursor mode by default
  25. set terminal keypad-mode numeric ; DEC keypad in numeric mode by default
  26.  
  27. ; The Num Lock key toggles between two different scan codes each time it is
  28. ; pressed, and furthermore still acts as Num Lock for the numeric keypad digit
  29. ; keys.  Hence, duplicate definitions for Num Lock and the keypad digits.
  30. ;
  31. ;       Scan Definition   DEC VT Key         IBM PC Key       IBM Key Group
  32. ;
  33. set key \766 \Kgold       ; PF1 (Gold)         Num Lock         Numeric keypad
  34. set key \510 \Kgold       ; PF1 (Gold)         Num Lock         Numeric keypad
  35. set key \559 \Kpf2        ; PF2                Keypad /         Numeric keypad
  36. set key \554 \Kpf3        ; PF3                Keypad *         Numeric keypad
  37. set key \557 \Kpf4        ; PF4                Keypad -         Numeric keypad
  38.  
  39. ; DEC PF1-PF4 also assigned to PC F1-F4.
  40. ;
  41. set key \315 \Kgold       ; PF1 (Gold)         F1               Top Rank F keys
  42. set key \316 \Kpf2        ; PF2                F2               Top Rank F keys
  43. set key \317 \Kpf3        ; PF3                F3               Top Rank F keys
  44. set key \318 \Kpf4        ; PF4                F4               Top Rank F keys
  45.  
  46. ; DEC auxiliary keypad digit keys (two each, for Num Lock On and Off).
  47. ;
  48. set key \338 \Kkp0        ; KP 0               Keypad 0         Numeric keypad
  49. set key \560 \Kkp0        ; KP 0               Keypad 0         Numeric keypad
  50. set key \335 \Kkp1        ; KP 1               Keypad 1         Numeric keypad
  51. set key \561 \Kkp1        ; KP 1               Keypad 1         Numeric keypad
  52. set key \336 \Kkp2        ; KP 2               Keypad 2         Numeric keypad
  53. set key \562 \Kkp2        ; KP 2               Keypad 2         Numeric keypad
  54. set key \337 \Kkp3        ; KP 3               Keypad 3         Numeric keypad
  55. set key \563 \Kkp3        ; KP 3               Keypad 3         Numeric keypad
  56. set key \331 \Kkp4        ; KP 4               Keypad 4         Numeric keypad
  57. set key \564 \Kkp4        ; KP 4               Keypad 4         Numeric keypad
  58. set key \332 \Kkp5        ; KP 5               Keypad 5         Numeric keypad
  59. set key \565 \Kkp5        ; KP 5               Keypad 5         Numeric keypad
  60. set key \333 \Kkp6        ; KP 6               Keypad 6         Numeric keypad
  61. set key \566 \Kkp6        ; KP 6               Keypad 6         Numeric keypad
  62. set key \327 \Kkp7        ; KP 7               Keypad 7         Numeric keypad
  63. set key \567 \Kkp7        ; KP 7               Keypad 7         Numeric keypad
  64. set key \328 \Kkp8        ; KP 8               Keypad 8         Numeric keypad
  65. set key \568 \Kkp8        ; KP 8               Keypad 8         Numeric keypad
  66. set key \329 \Kkp9        ; KP 9               Keypad 9         Numeric keypad
  67. set key \569 \Kkp9        ; KP 9               Keypad 9         Numeric keypad
  68.  
  69. ; DEC auxiliary keypad punctuation and other keys.  Note that DEC keypads have
  70. ; four keys on the right, whereas IBM keypads have only three.  Thus the
  71. ; need for an Alt-key modifier on one of them.  Also note that while it might
  72. ; seem to make more sense to map DEC Keypad Minus to IBM Keypad Minus, most
  73. ; DEC users are accustomed to having PF1-PF4 across the top keypad row.
  74. ;
  75. set key \339 \KkpDot      ; KP Period          Keypad Period    Numeric keypad
  76. set key \558 \KkpDot      ; KP Period          Keypad Period    Numeric keypad
  77. set key \525 \KkpEnter    ; KP Enter           Keypad Enter     Numeric keypad
  78. set key \334 \KkpMinus    ; KP Minus           Alt-Keypad-Plus  Numeric keypad
  79. set key \555 \KkpComa     ; KP Comma           Keypad Plus      Numeric keypad
  80.  
  81. ; DEC Cursor keys
  82. ;
  83. set key \584 \KupArr      ; Up Arrow           Up Arrow         Cursor keypad
  84. set key \592 \KdnArr      ; Down Arrow         Down Arrow       Cursor keypad
  85. set key \589 \KrtArr      ; Right Arrow        Right Arrow      Cursor keypad
  86. set key \587 \KlfArr      ; Left Arrow         Left Arrow       Cursor keypad
  87.  
  88. ; DEC Editing keys, VT220 and above.
  89. ; By making these Ctrl-keys, we lose Ctrl-Page-Up and Ctrl-Page-Down
  90. ; for line-at-a-time rollback control.  It would have been preferable to
  91. ; make them Alt-keys, but Alt-home generates no scan code.
  92. ;
  93. set key \658 \KdecFind    ; Find               Ctrl-Insert      Gray keypad
  94. set key \631 \KdecInsert  ; Insert             Ctrl-Home        Gray keypad
  95. set key \644 \KdecRemove  ; Remove             Ctrl-Page-Up     Gray keypad
  96. set key \659 \KdecSelect  ; Select             Ctrl-Delete      Gray keypad
  97. set key \629 \KdecPrev    ; Previous Screen    Ctrl-End         Gray keypad
  98. set key \630 \KdecNext    ; Next Screen        Ctrl-Page-Down   Gray keypad
  99.  
  100. set key \389 \KdecHelp    ; Help = F15         F11 (Can't use Print Screen,
  101. set key \390 \KdecDo      ; Do = F16           F12  Scroll Lock, or Pause)
  102.  
  103. ; DEC Function keys, VT220 and above
  104. ;
  105. set key \320 \KdecF6      ; F6                 F6               Top Rank F keys
  106. set key \321 \KdecF7      ; F7                 F7               Top Rank F keys
  107. set key \322 \KdecF8      ; F8                 F8               Top Rank F keys
  108. set key \323 \KdecF9      ; F9                 F9               Top Rank F keys
  109. set key \324 \KdecF10     ; F10                F10              Top Rank F keys
  110.  
  111. set key \360 \KdecF11     ; F11 / Esc          Alt-F1           Top Rank F keys
  112. set key \361 \KdecF12     ; F12 / BS           Alt-F2           Top Rank F keys
  113. set key \362 \KdecF13     ; F13 / LF           Alt-F3           Top Rank F keys
  114. set key \363 \KdecF14     ; F14                Alt-F4           Top Rank F keys
  115. set key \366 \KdecF17     ; F17                Alt-F7           Top Rank F keys
  116. set key \367 \KdecF18     ; F18                Alt-F8           Top Rank F keys
  117. set key \368 \KdecF19     ; F19                Alt-F9           Top Rank F keys
  118. set key \369 \KdecF20     ; F20                Alt-F10          Top Rank F keys
  119.  
  120. ; End of CKOVTK2.INI
  121.