MS-DOS Kermit 3.00 Sample Key Settings Files ------------------------------ Date: Tue, 6 Feb 90 09:54 CST From: "Kevin Lowey" Subject: Extended.ini - VT300 layout for IBM Extended keyboard Hi, Below you will find an MS-KERMIT .INI file that I have put together for use on campus here at the U of S. It defines the IBM Extended keyboard (as found on PS/2 computers) to be more like a VT300 terminal. A complete listing of the key definitions is given in the listing below. Here is a short summary. VT300 IBM Numbers on the keypad Numbers on the keypad Enter on the keypad Enter on the keypad - on keypad - on keypad , on keypad + on keypad Help key / on keypad Do key * on keypad PF1 through PF4 F1 through F4 F5 through F12 F5 through F12 F13 through F20 Shift F5 through shift F12 Insert Here Insert on cursor pad Remove Delete on the cursor pad Previous Screen Page Up on the cursor pad Next Screen Page Down on the cursor pad FIND Home on the cursor pad END Select on the cursor pad The number pad definitions work no matter what state NUMLOCK is set to. (That way I don't have to field questions from people saying this didn't work simply because they forgot to press NUM-LOCK) The definition does not include the F1 through F5 keys, however these are not real "keys" on a VT200 keyboard, but more terminal control switches that can be handled through other PC keys like Printscreen, etc. I also added the SET DISPLAY 8, and the SET SEND PACKET 2000 and SET RECEIVE PACKET 2000 statements at the bottom because these should be used at our site. You may wish to delete these. - Kevin Lowey ========================= Cut Here ================================== ; MSKERMIT 3.00 .INI file for IBM Extended Keyboard ; Written by Kevin Lowey - University of Saskatchewan Computing Services ; - LOWEY@SASK.USASK.CA ; DATE: 2 February 1990 ; ; USAGE: ; This INI file is guaranteed to work ONLY with IBM Extended keyboards ; as found with the IBM PS/2 computers. It may work with others as well ; but don't be surprised if it doesn't. ; ; To use this file rename it MSKERMIT.INI and put it in the same ; directory as the MSVIBM.EXE (or KERMIT.EXE) file. ; ; DESCRIPTION: ; This file sets the IBM-PC Extended Keyboard so that it emulates the ; VT300 keyboard. ; ; It also sets some of the communication parameters and protocol ; paramters for use with our campus VAX and Unix systems. ; ; ; ********************* Keyboard Definitions ****************** ; IBM KEY DEC KEY ; Numeric Keypad ; There are two definitions for each of the numeric keypad keys, ; one for when is pressed, and one when it isn't. set key \850 \kkp0 ; Keypad 0 (Nunlock) Keypad 0 set key \338 \kkp0 ; Keypad 0 (Normal) Keypad 0 set key \847 \kkp1 ; Keypad 1 (Numlock) Keypad 1 set key \335 \kkp1 ; Keypad 1 (normal) Keypad 1 set key \848 \kkp2 ; Keypad 2 (numlock) Keypad 2 set key \336 \kkp2 ; Keypad 2 (normal) Keypad 2 set key \849 \kkp3 ; Keypad 3 (Numlock) Keypad 3 set key \337 \kkp3 ; Keypad 3 (Normal) Keypad 3 set key \843 \kkp4 ; Keypad 4 (Numlock) Keypad 4 set key \331 \kkp4 ; Keypad 4 (Normal) Keypad 4 set key \844 \kkp5 ; Keypad 5 (Numlock) Keypad 5 set key \332 \kkp5 ; Keypad 5 (Normal) Keypad 5 set key \845 \kkp6 ; Keypad 6 (Numlock) Keypad 6 set key \333 \kkp6 ; Keypad 6 (Normal) Keypad 6 set key \839 \kkp7 ; Keypad 7 (Numlock) Keypad 7 set key \327 \kkp7 ; Keypad 7 (Normal) Keypad 7 set key \840 \kkp8 ; Keypad 8 (Numlock) Keypad 8 set key \328 \kkp8 ; Keypad 8 (normal) Keypad 8 set key \841 \kkp9 ; Keypad 9 (Numlock) Keypad 9 set key \329 \kkp9 ; Keypad 9 (Normal) Keypad 9 set key \330 \kkpminus ; Keypad - Keypad - set key \334 \kkpcoma ; Keypad + Keypad , set key \851 \kkpdot ; Keypad . (Numlock) Keypad . set key \339 \kkpdot ; Keypad . (normal) Keypad . set key \4365 \Kkpenter ; Keypad Enter Keypad Enter set key \4399 \kdechelp ; Keypad / Help (F15) set key \311 \kdecDO ; Keypad * DO key (F16) ; F1 thru F20 keys IBM DEC ; F1 Gold (PF1) ; F2 PF2 ; F3 PF3 ; F4 PF4 set key \319 \kbreak ; F5 BREAK set key \320 \Kdecf6 ; F6 DEC F6 set key \321 \Kdecf7 ; F7 DEC F7 set key \322 \KdecF8 ; F8 DEC F8 set key \323 \KdecF9 ; F9 DEC F9 set key \324 \KdecF10 ; F10 DEC F10 set key \389 \kdecF11 ; F11 DEC F11 (ESC) set key \390 \kdecF12 ; F12 DEC F12 (BS) set key \856 \kdecF13 ; Shift-F5 DEC F13 (LF) set key \857 \kdecF14 ; Shift-F6 DEC F14 set key \858 \kdecHelp ; Shift-F7 DEC HELP set key \859 \kdecDO ; Shift-F8 DEC DO set key \860 \kdecF17 ; Shift-F9 DEC F17 set key \861 \KdecF18 ; Shift-F10 DEC F18 set key \903 \KdecF19 ; Shift-F11 DEC F19 set key \904 \kdecF20 ; Shift-F12 DEC F20 ; Cursor Keypad set key \4434 \kdecinsert ; INSERT DEC insert set key \4475 \kdecRemove ; DELETE DEC Remove set key \4423 \kdecFind ; Home DEC Find set key \4431 \KdecSelect ; END DEC SELECT set key \4425 \KDecPrev ; PGUP DEC PREV set key \4433 \KDecNext ; PGDN DEC NEXT ; ***************** Other settings ************************ ; Maximum Packet Size set send packet 2000 set receive packet 2000 ; set the display to 8 bits so Word-11 et. al. work correctly SET DISPLAY 8 ------------------------------ Date: Tue, 6 Feb 90 09:58 CST From: "Kevin Lowey" Subject: 88key.ini - VT300 layout for original IBM 88 key keyboard Hi, This is an INI file I developed for use at the University of Saskatchewan. It makes all the VT300 keys available to people using the original 88-key IBM-PC keyboard, using a "reasonable" layout. The comments below explain how the keys have been layed out. - Kevin Lowey ===================== Cut Here ================= ; MS-Kermit 3.0 MSKERMIT.INI file for Old style 88-key keyboard ; Written by Kevin Lowey - University of Saskatchewan Computing Services ; - LOWEY@SASK.USASK.CA ; DATE: 2 Feb. 1990 ; ; USAGE: ; If you have the old style 88 key keyboard (with the function keys on ; the left hand side) then rename this file MSKERMIT.INI and place it in ; the same directory as the KERMIT.EXE (or MSVIBM.EXE) file. That will make ; Kermit use this keyboard definition instead of its default settings. ; ; Key Definitions: ; Mapping the VT300 series keyboard to an old-style 88 key keyboard is not ; easy. The following mapping is the best compromise I could come up with. ; ; The numeric keypad is mapped as follows: ; ; IBM Function VT100 Keys ; Normal Shifted On the Numeric Keypad ; ------------------------- ------------------------- ; | F1 | F2 | SF1 | SF2 | | PF1 | PF2 | PF3 | PF4 | ; |-----+-----+-----+-----| |-----+-----+-----+-----| ; | F3 | F4 | SF3 | SF4 | | 7 | 8 | 9 | - | ; |-----+-----+-----+-----| |-----+-----+-----+-----| ; | F5 | F6 | SF5 | SF6 | | 4 | 5 | 6 | , | ; |-----+-----+-----+-----| |-----+-----+-----+-----| ; | F7 | F8 | SF7 | SF8 | | 1 | 2 | 3 | | ; |-----------+-----|-----| |-----------+-----|ENTER| ; | F9 | F10 | SF9 |SF10 | | 0 | . | | ; ------------------------- ------------------------- ; ; The repetition of the F9 and F10 keys, as well as the SF8 and SF10 keys, ; was done for consistancy. ; ; The DEC F1 to F10 keys are mapped to the PC Control-F1 to Control-F10 keys. ; The DEC F11 to F20 keys are mapped to the PC ALT-F1 to ALT-F10 keys. ; ; Definition PC key DEC key set key \315 \kpf1 ; F1 PF1 set key \316 \kpF2 ; F2 PF2 set key \317 \kkp7 ; F3 Keypad 7 set key \318 \kkp8 ; F4 Keypad 8 set key \319 \kkp4 ; F5 Keypad 4 set key \320 \kkp5 ; F6 Keypad 5 set key \321 \kkp1 ; F7 Keypad 1 set key \322 \kkp2 ; F8 Keypad 2 set key \323 \kkp0 ; F9 Keypad 0 set key \324 \kkp0 ; F10 Keypad 0 (duplicate) set key \852 \kpf3 ; Shift-F1 PF3 set key \853 \kpf4 ; Shift-F2 PF4 set key \854 \kkp9 ; Shift-F3 Keypad 9 set key \855 \kkpminus ; Shift-F4 Keypad Minus set key \856 \kkp6 ; Shift-F5 Keypad 6 set key \857 \kkpcoma ; Shift-F6 Keypad Comma set key \858 \kkp3 ; Shift-F7 Keypad 3 set key \859 \kkpenter ; Shift-F8 Keypad Enter set key \860 \kkpdot ; Shift-F9 Keypad Dot set key \861 \kkpenter ; Shift-F10 Keypad Enter (duplicate) set key \1374 \kholdscrn ; Control-F1 F1 set key \1375 \kprtscn ; Control-F2 F2 set key \1376 \khelp ; Control-F3 Setup ; No Definition ; Control-F4 F4 set key \1378 \kbreak ; Control-F5 F5 set key \1379 \kdecF6 ; Control-F6 F6 set key \1380 \kdecF7 ; Control-F7 F7 set key \1381 \kdecF8 ; Control-F8 F8 set key \1382 \kdecF9 ; Control-F9 F9 set key \1383 \kdecF10 ; Control-F10 F10 set key \2408 \kdecF11 ; Alt-F1 F11 set key \2409 \kdecF12 ; Alt-F2 F12 set key \2410 \kdecF13 ; Alt-F3 F13 set key \2411 \kdecF14 ; Alt-F4 F14 set key \2412 \kdechelp ; Alt-F5 Help (F15) set key \2413 \kdecdo ; Alt-F6 Do (F16) set key \2414 \kdecF17 ; Alt-F7 F17 set key \2415 \kdecF18 ; Alt-F8 F18 set key \2416 \kdecF19 ; Alt-F9 F19 set key \2417 \kdecF20 ; Alt-F10 F20 ; The following definitions define the DEC cursor keypad equivalents set key \327 \kdecfind ; HOME FIND set key \335 \kdecselect ; END Select set key \329 \kdecprev ; PGUP Previous Screen set key \337 \kdecnext ; PGDN Next Screen set key \330 \kdechelp ; Keypad - Help set key \334 \kdecdo ; Keypad + Do set key \338 \kdecinsert ; INSERT INSERT set key \339 \kdecremove ; DEL REMOVE ; Other settings for University of Saskatchewan SET DISPLAY 8 SET SEND PACKET 2000 SET RECEIVE PACKET 2000 ------------------------------ Date: 5 FEB 90 16:16:58.50-GMT From: VALIRON@FRGAG51.BITNET Subject: Comments on Kermit 3.00 Many thanks for all of you who have worked on MS-Kermit 3.00. Very impressive. Kermit operated PC's are now valuable competitors for most alpha dedicated terminals. I have extended the MSKERMIT.INI file and written two additional macro files with the following purposes: - Simulating a VT300 keypad on 84-key and 102-key keyboards - Optional remap of french characters to ascii characters useful for programming applications. The macro file KEYBOARD.TAK is mapped to Cntrl-F1 and allows to select the desired mapping. - Automated file transfer macro procedure mapped to Cntrl-F2. I include the procedures below. They might be used as additional templates for Kermit users. Best regards. Dr. Pierre VALIRON | bitnet: VALIRON@FRGAG51 Observatoire de Grenoble | phone: +33 76 51 47 87 Groupe d'Astrophysique | Bat. CERMO | Fax: Groupe Astro +33 76 44 88 21 BP 53X 38041 Grenoble Cedex | IRAM +33 76 51 59 38 FRANCE | ============================================================================== COMMENT - File MSKERMIT.INI COMMENT - For french PC's. COMMENT - Minor corrections should be made on other national PC's. COMMENT - (P. Valiron, 2 february 1990) ; ; FILE MSKERMIT.INI ; ; Sample initialization file for MS-DOS Kermit 3.00. ; Christine M. Gianone, January 1990 ; ; Extended by P. Valiron ; Extra support to remap a VT300-like keypad on extended keyboards ; Extra support to remap french characters ; ( Cntrl F1 and KEYBOARD.TAK ) ; ( Cntrl F2 and XFER.TAK ) echo \13MS-DOS Kermit 3.0 initialization file... echo \13Extra support for french extended keyboards ( Cntrl F1 ) echo \13Macro XFER for file transfers ( Cntrl F2 ) echo \13 COMMENT - KEYPAD section... ; Default definitions are appropriate when the F1-F10 ; keys form a line above the keyboard. ;goto k84 ; For a 84-key keyboard, F1-F10 forming a left-handed rectangle ; Added some definitions, especially for VT200 keys. goto k102 ; Extended 102-key keyboard, plus above definitions ;goto finpad ; Default Kermit mapping, plus above definitions. ;goto skippad ; Stick to default definitions. :k84 COMMENT - KEYPAD for 84-key keyboard, F1-F10 forming a left-handed rectangle SET KEY \315 \Kgold ; F1 SET KEY \316 \Kpf2 ; F2 SET KEY \2408 \Kpf3 ; Alt F1 SET KEY \2409 \Kpf4 ; Alt F2 ; SET KEY \317 \Kkp7 ; F3 SET KEY \318 \Kkp8 ; F4 SET KEY \2410 \Kkp9 ; Alt F3 SET KEY \2411 \Kkpminus ; Alt F4 ; SET KEY \319 \Kkp4 ; F5 SET KEY \320 \Kkp5 ; F6 SET KEY \2412 \Kkp6 ; Alt F5 SET KEY \2413 \Kkpcoma ; Alt F6 ; SET KEY \321 \Kkp1 ; F7 SET KEY \322 \Kkp2 ; F8 SET KEY \2414 \Kkp3 ; Alt F7 SET KEY \2415 \Kkpenter ; Alt F8 ; SET KEY \323 \Kkp0 ; F9 SET KEY \324 \Kkp0 ; F10 SET KEY \2416 \Kkpdot ; Alt F9 SET KEY \2417 \Kkpenter ; Alt F10 ; SET KEY \339 \Kkp6 ; .ANNUL Cut/Paste SET KEY \851 \Kkp6 ; .ANNUL SET KEY \338 \Kkpdot ; +INS Select/Reset SET KEY \850 \Kkpdot ; +INS ; ; Rolling screen memory: ; Default mapping ( Pgup, Pgdn, Cntl Pgup, Cntl Pgdn ) ; goto finpad :k102 COMMENT - KEYPAD for an extended 102-key keyboard, COMMENT - same disposition as native VT220/VT320 COMMENT - (excepted Gold as F12 and Erase C (comma) as Alt Del) SET KEY \390 \Kgold ; F12 SET KEY \4399 \Kpf2 ; keypad SET KEY \311 \Kpf3 ; keypad SET KEY \330 \Kpf4 ; keypad ; SET KEY \327 \Kkp7 ; keypad SET KEY \328 \Kkp8 ; keypad SET KEY \329 \Kkp9 ; keypad SET KEY \334 \Kkpminus ; keypad ; SET KEY \331 \Kkp4 ; keypad SET KEY \332 \Kkp5 ; keypad SET KEY \333 \Kkp6 ; keypad SET KEY \2318 \Kkpcoma ; Alt Del ; SET KEY \335 \Kkp1 ; keypad SET KEY \336 \Kkp2 ; keypad SET KEY \337 \Kkp3 ; keypad SET KEY \4365 \Kkpenter ; ENTR ; SET KEY \338 \Kkp0 ; keypad SET KEY \339 \Kkpdot ; keypad ; ; Mapping the mini keypad of the VT200 ; ; The 6 keys above the direction arrows are mapped according to the ; indications on the keys, the disposition is thus different from the ; native disposition on a true VT200, but the functionality is the same. ; ; Mapping HELP and DO to F9 and F10. ; Function keys F6 to F20 are not yet mapped. Suggestions are welcome. ; SET KEY \4434 \KdecInsert SET KEY \4435 \KdecRemove SET KEY \4423 \KdecSelect SET KEY \4431 \KdecFind SET KEY \4425 \KdecPrev SET KEY \4433 \KdecNext ; SET KEY \323 \KdecHelp ; Help en F9 SET KEY \324 \KdecDO ; DO en F10 ; ; Rolling screen memory: ; Alt Pgup, Pgdn above the arrows, and Alt Arrows. ; SET KEY \2457 \KUPSCN ; Alt Pgup SET KEY \2465 \KDNSCN ; Alt Pgdn SET KEY \2456 \KUPONE ; Alt Up SET KEY \2464 \KDNONE ; Alt Down SET KEY \2459 \KHOMSCN ; Alt Left SET KEY \2461 \KENDSCN ; Alt Right :finpad COMMENT - Additional tricks. SET KEY \782 \8 ; \<- Backspace ; Alt B Break (preset) SET KEY \2350 \Kreset ; Alt C Clear terminal SET KEY \2341 \Khelp ; Alt K Kermit Help menu SET KEY \2329 \Kprtscn ; Alt P Print screen SET KEY \2324 \Ktermtype ; Alt T Toggle Termtype SET KEY \2326 \Kdump ; Alt U dUmp screen to KERMIT.SCN ; Alt X Return to Kermit> prompt (preset) ; ; Some extra definitions to simulate the missing VT200 keys on a 84-key ; keypad. These definitions can be kept here, and thus in use also on ; extended keyboards, or moved at the end of the specific redefinition ; for 84-key keyboards. ; SET KEY \2336 \KdecDO ; Alt D DO SET KEY \2337 \KdecFind ; Alt F Find SET KEY \2339 \KdecHelp ; Alt H Help SET KEY \2327 \KdecInsert ; Alt I Insert SET KEY \2323 \KdecRemove ; Alt R Remove SET KEY \2335 \KdecSelect ; Alt S Select SET KEY \2351 \KdecPrev ; Alt V Previous Page SET KEY \2353 \KdecNext ; Alt N Next Page :skippad COMMENT - Macro definitions section... ; Reserved variables. If you define new macros, don't use these variables. ; \%e - Last EDIT command filename. ; \%n - Last DIAL command phone number. ; Macros for communicating with UNIX, VAX/VMS, and similar systems: ; VAX, MINITEL def vax set par non, set display 8, set term VT320, set flo x, - set hand no, set dupl ful, set key \270 \127 def minitel set par even, set display 7, set term VT102, - set flo x, set hand no, set dupl ful, set key \270 \127 ; Macro for communicating with IBM mainframes in linemode: def ibm set par mark, set flo no, set hand xon, set dup ha, set key \270 \8 ; Macro for communicating with IBM mainframes in fullscreen mode: def fullscreen set par ev,set flo x,set hand no,set dupl ful,set key \270 \8 ; Additional DOS commands available directly from the MS-Kermit> prompt. ; First define a FATAL error macro. def fatal echo Error: \%1\13, def \%1, stop ; DOS MORE command... def more if < argc 2 fatal $More what?,- run more < \%1 ; DOS REN(ame) command... def rename if < argc 2 fatal $Rename what?,- if < argc 3 fatal $Rename \%1 to what?,- run ren \%1 \%2 ; DOS COPY command... def copy if < argc 2 fatal $Copy what?,- if < argc 3 fatal $Copy \%1 to where?,- run copy \%1 \%2 ; DOS CHCP command to examine or change code page... def chcp if = argc 1 run chcp,- if = argc 2 run chcp \%1 ; EDIT command... ; Replace "edlin" with your favorite editor or word processor. def edit if = argc 2 assign \%e \%1,- if not def \%e fatal $Edit what?,- run ec \%e ; CAPTURE command - easy downloading of a file from the host. ; Unlike the LOG SESSION command, CAPTURE always creates a new file. ; It overwrites file of same name if it already exists. ; Usage: at the MS-Kermit> prompt, type "capture xxx" where xxx is the name ; of the file you want to create on the PC. Once you are connected to the ; host, TYPE the desired file. Escape back when done. The captured file will ; be on your disk (with a TYPE command at the beginning & a prompt at the end). def capture if = argc 1 fatal $Capture into what file?,- if exist \%1 del \%1,- log session \%1,- connect,close session,log sess session.log,close ses,def \%1 ; NOISY and CLEAN macros, modify to suit your environment... def clean set rec pack 94, set retry 4, set bl 1 def noisy set rec pack 40, set retr 20, set bl 3 ; ERRSTP macro, for use with DIAL command... def errstp echo Error: \%1\13,def \%1,hangup,stop ; LOOKUP macro for use with DIAL command... ; The names and numbers shown here are not real. ; Replace them with ones you really use. ; You may also add or delete lines, but the entire macro definition ; cannot be more than 255 characters long. ; ; For MINITEL access : execute the macro MINITEL ; For VAX access, default mode 8bits, noparity: execute the macro "VAX" ; def lookup - if eq \%1 gag-minitel def \%1 xxxxxxxx,- if eq \%1 gag-fulldup def \%1 yyyyyyyy,- if eq \%1 other-access def \%1 zzzzzzzz ; DIAL command... ; Requires the file HAYES.TAK to be on current disk or in DOS PATH. ; Uses LOOKUP and FATAL macros. def dial if = argc 2 assign \%n \%1,- if < argc 2 if not def \%n fatal $Dial what?,- if > argc 2 fatal $No spaces please.,- lookup \%n,- take hayes.tak COMMENT - Script defaults set input timeout proceed ; Allow IF SUCCESS/FAILURE to work set input echo on ; Display port input on screen set input case ignore ; Ignore alphabet case for input matching set input default-timeout 1 ; One second default input timeout COMMENT - Terminal emulation settings. Modify to suit your environment. ;set display 8 ; default for macro VAX ;set terminal vt320 ; default for macro VAX set terminal roll on ; Roll-back screens set terminal wrap on ; Tell Kermit to do line wrap set terminal cursor underline ; Underline cursor (rather than block) set terminal character latin-1 ; Use ISO Latin-1 terminal character set COMMENT - File transfer settings set file warning on ; Don't overwrite existing files ;set transfer character-set transparent ; For compatibility with old versions set transfer character-set latin1 ; To transfer multinational characters set receive packet-length 94 ; Regular-size packets set attributes on ; Use file-attribute packets set window 1 ; Don't use sliding windows COMMENT - Initial PC communication setup. Modify to suit your PC and tastes. set port 1 ; Use COM1 do vax ; Set parameters for talking to VAX ; (These are the default parameters anyway) ;set key \96 \27 ; Exchange ESC and ;set key \27 \96 ; accent grave keys during terminal emulation ;set terminal color 0 34 47 ; Terminal color is blue on white set terminal color 0 37 42 ; Nicer on black and white VGA COMMENT - Support for KEYBOARD.TAK ( Ctrl F1 ) and XFER.TAK ( Ctrl F2 ) define terminalR def \%a inter, take keyboard.tak, def %a, connect set key \1374 \KterminalR define xfer take xfer.tak define terminalS def \%a inter, take xfer.tak, def %a, connect set key \1375 \KterminalS take keyboard.tak ; Redefine the keyboard if wanted set speed 19200 ; Adjust speed to your convenience connect ; You might comment this line ------------------------------