; File: CKOVTK2.INI ; ; Extended Keyboard definitions for OS/2 C-Kermit 5A(190) ; using keyboard verbs exactly compatible with MS-DOS Kermit's. ; Works with any VT terminal type: VT52, VT100, VT102, VT220. ; ; If you don't like the key assignments made in this command file, ; feel free to change them to suit your tastes. ; ; Frank da Cruz and Christine M. Gianone ; Columbia University, New York City ; February 28, 1994 ; if not eq "\v(program)" "C-Kermit" - end 1 \v(cmdfile) can be used only by C-Kermit. if not eq "\v(system)" "OS/2" - end 1 \v(cmdfile) can be used only by OS/2 C-Kermit. if < \v(version) 501190 - end 1 \v(cmdfile) requires C-Kermit 5A(190) or later. echo Executing \v(cmdfile) for full VT220 key mappings... ; The following are the default anyway, corresponding to the startup states ; of the DEC cursor and auxilliary keypads. set terminal arrow-keys cursor ; Arrow keys are in cursor mode by default set terminal keypad-mode numeric ; DEC keypad in numeric mode by default ; The Num Lock key toggles between two different scan codes each time it is ; pressed, and furthermore still acts as Num Lock for the numeric keypad digit ; keys. Hence, duplicate definitions for Num Lock and the keypad digits. ; ; Scan Definition DEC VT Key IBM PC Key IBM Key Group ; set key \766 \Kgold ; PF1 (Gold) Num Lock Numeric keypad set key \510 \Kgold ; PF1 (Gold) Num Lock Numeric keypad set key \559 \Kpf2 ; PF2 Keypad / Numeric keypad set key \554 \Kpf3 ; PF3 Keypad * Numeric keypad set key \557 \Kpf4 ; PF4 Keypad - Numeric keypad ; DEC PF1-PF4 also assigned to PC F1-F4. ; set key \315 \Kgold ; PF1 (Gold) F1 Top Rank F keys set key \316 \Kpf2 ; PF2 F2 Top Rank F keys set key \317 \Kpf3 ; PF3 F3 Top Rank F keys set key \318 \Kpf4 ; PF4 F4 Top Rank F keys ; DEC auxiliary keypad digit keys (two each, for Num Lock On and Off). ; set key \338 \Kkp0 ; KP 0 Keypad 0 Numeric keypad set key \560 \Kkp0 ; KP 0 Keypad 0 Numeric keypad set key \335 \Kkp1 ; KP 1 Keypad 1 Numeric keypad set key \561 \Kkp1 ; KP 1 Keypad 1 Numeric keypad set key \336 \Kkp2 ; KP 2 Keypad 2 Numeric keypad set key \562 \Kkp2 ; KP 2 Keypad 2 Numeric keypad set key \337 \Kkp3 ; KP 3 Keypad 3 Numeric keypad set key \563 \Kkp3 ; KP 3 Keypad 3 Numeric keypad set key \331 \Kkp4 ; KP 4 Keypad 4 Numeric keypad set key \564 \Kkp4 ; KP 4 Keypad 4 Numeric keypad set key \332 \Kkp5 ; KP 5 Keypad 5 Numeric keypad set key \565 \Kkp5 ; KP 5 Keypad 5 Numeric keypad set key \333 \Kkp6 ; KP 6 Keypad 6 Numeric keypad set key \566 \Kkp6 ; KP 6 Keypad 6 Numeric keypad set key \327 \Kkp7 ; KP 7 Keypad 7 Numeric keypad set key \567 \Kkp7 ; KP 7 Keypad 7 Numeric keypad set key \328 \Kkp8 ; KP 8 Keypad 8 Numeric keypad set key \568 \Kkp8 ; KP 8 Keypad 8 Numeric keypad set key \329 \Kkp9 ; KP 9 Keypad 9 Numeric keypad set key \569 \Kkp9 ; KP 9 Keypad 9 Numeric keypad ; DEC auxiliary keypad punctuation and other keys. Note that DEC keypads have ; four keys on the right, whereas IBM keypads have only three. Thus the ; need for an Alt-key modifier on one of them. Also note that while it might ; seem to make more sense to map DEC Keypad Minus to IBM Keypad Minus, most ; DEC users are accustomed to having PF1-PF4 across the top keypad row. ; set key \339 \KkpDot ; KP Period Keypad Period Numeric keypad set key \558 \KkpDot ; KP Period Keypad Period Numeric keypad set key \525 \KkpEnter ; KP Enter Keypad Enter Numeric keypad set key \334 \KkpMinus ; KP Minus Alt-Keypad-Plus Numeric keypad set key \555 \KkpComa ; KP Comma Keypad Plus Numeric keypad ; DEC Cursor keys ; set key \584 \KupArr ; Up Arrow Up Arrow Cursor keypad set key \592 \KdnArr ; Down Arrow Down Arrow Cursor keypad set key \589 \KrtArr ; Right Arrow Right Arrow Cursor keypad set key \587 \KlfArr ; Left Arrow Left Arrow Cursor keypad ; DEC Editing keys, VT220 and above. ; By making these Ctrl-keys, we lose Ctrl-Page-Up and Ctrl-Page-Down ; for line-at-a-time rollback control. It would have been preferable to ; make them Alt-keys, but Alt-home generates no scan code. ; set key \658 \KdecFind ; Find Ctrl-Insert Gray keypad set key \631 \KdecInsert ; Insert Ctrl-Home Gray keypad set key \644 \KdecRemove ; Remove Ctrl-Page-Up Gray keypad set key \659 \KdecSelect ; Select Ctrl-Delete Gray keypad set key \629 \KdecPrev ; Previous Screen Ctrl-End Gray keypad set key \630 \KdecNext ; Next Screen Ctrl-Page-Down Gray keypad set key \389 \KdecHelp ; Help = F15 F11 (Can't use Print Screen, set key \390 \KdecDo ; Do = F16 F12 Scroll Lock, or Pause) ; DEC Function keys, VT220 and above ; set key \320 \KdecF6 ; F6 F6 Top Rank F keys set key \321 \KdecF7 ; F7 F7 Top Rank F keys set key \322 \KdecF8 ; F8 F8 Top Rank F keys set key \323 \KdecF9 ; F9 F9 Top Rank F keys set key \324 \KdecF10 ; F10 F10 Top Rank F keys set key \360 \KdecF11 ; F11 / Esc Alt-F1 Top Rank F keys set key \361 \KdecF12 ; F12 / BS Alt-F2 Top Rank F keys set key \362 \KdecF13 ; F13 / LF Alt-F3 Top Rank F keys set key \363 \KdecF14 ; F14 Alt-F4 Top Rank F keys set key \366 \KdecF17 ; F17 Alt-F7 Top Rank F keys set key \367 \KdecF18 ; F18 Alt-F8 Top Rank F keys set key \368 \KdecF19 ; F19 Alt-F9 Top Rank F keys set key \369 \KdecF20 ; F20 Alt-F10 Top Rank F keys ; End of CKOVTK2.INI