home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!caen!kuhub.cc.ukans.edu!parsifal.umkc.edu!vax1.umkc.edu!ghdai
- Newsgroups: comp.os.os2.apps
- Subject: CKermit.INI for 5A(188), OS/2 2.0
- Message-ID: <1992Dec17.190114.1@vax1.umkc.edu>
- From: ghdai@vax1.umkc.edu
- Date: 17 Dec 92 19:01:14 CST
- Organization: University of Missouri - Kansas City
- NNTP-Posting-Host: vax1.umkc.edu
- Lines: 228
-
- I see many people asking for C-Kermit help. I'm using C-Kermit 5A(188), 23/
- Nov/92, for OS/2 2.0 right now (and I believe you can find it at Hobbes).
- You need to dial first and then use connect, e.g.,
-
- dial 123-4567
- connect
- I'm enclosing my CKERMIT.INI file in the following for an important reason:
- it includes a portion that redefine the keypad keys in order to make the
- keyboard like a real VT-100 keyboard. Although it contains several files
- I got from several ftp-sites and therefore something redundant (I don't
- want to bother making it perfect), it is something really work. You may
- delete anything garbage in it.
-
- ------ Cut here ------
- EXTPROC d:\Kermit\CKOKer32.EXE
- ;
- ; C-Kermit initialization file for OS/2.
- ;
- ; Install in same directory with C-Kermit,
- ; and make sure that directory is in your OS/2 PATH.
- ;
- Echo Executing \v(cmdfile)...
-
- ; Dialing and communications
- ;
- set dial display on ; Let me watch dialing
- if exist d:/Kermit/ckermit.kdd -
- set dial directory -
- D:/Kermit/ckermit.kdd ; This is my dialing directory
- ;
- set modem hayes
- set line com3
- set speed 2400
- set flow xon/xoff
- ;set file type binary
-
- ; File transfer preferences
- ;
- set file display fullscreen ; Use the fullscreen file transfer display
- set receive packet-length 1000 ; Use 1000-character Kermit packets
- set window 2 ; Use 2 window slots
- set block 3 ; Use 16-bit CRC error checking
-
- ; Macro and prompt definitions
- ;
- ;define cls echo \27[H\27[2J ; Define CLS command to clear the screen
- ;define os2 push ; Make OS2 a synonym for PUSH, RUN, etc.
- set prompt [\v(dir)] C-Kermit> ; Make prompt show my current directory
-
- ;These four lines are commented out because they are moved to the very end
- ; of this file. They can be deleted.
- ;set terminal bytesize 8
- ;set terminal color normal white cyan
- ;dial 235-1491
- ;connect
-
- ; File CKERMOD.INI, Sample C-Kermit 5A customization file for OS/2.
- ;
- ; This file, which is ONLY A SAMPLE, should be called:
- ;
- ; .mykermrc (UNIX and OS-9)
- ; CKERMOD.INI (VMS, OpenVMS, AOS/VS, OS/2, Amiga, Atari ST)
- ;
- ; MODify it to suit your needs and preferences, and install it in the same
- ; directory as your C-Kermit initialization file. The design of this file
- ; lets you fill in a section for each different operating system where you
- ; run C-Kermit. This file is executed automatically by the standard C-Kermit
- ; initialization file, CKERMIT.INI (or .kermrc).
- ;
- ; Authors: Christine Gianone, Frank da Cruz, Columbia University.
- ; Date: 23 November 1992
-
- COMMENT - Settings that apply to all the systems I use:
- ;
- set delay 1 ; I escape back quickly
- set dial display on ; I like to watch C-Kermit dial
- set window 2 ; Use 2 window slots
- set block 3 ; Use 16-bit CRC error checking
- set receive packet-length 1000 ; Use 1000-character Kermit packets
-
- ; The remaining commands in this file depend on the script programming
- ; language. Here we make sure we have it, then we use it to go to the
- ; section that applies to the type of system where C-Kermit is running:
- ;
- set take error on ; Make errors fatal temporarily
- check if ; Do we have an IF command?
- set take error off ; Yes we do, back to normal
- goto \v(system) ; Go execute system-dependent commands
-
- :UNIX ; UNIX, all versions...
- set delay 1 ; I escape back quickly
- def mydial set modem hayes, - ; Define a macro for dialing out...
- set macro error on, -
- set line /dev/acu, -
- set speed 2400, -
- dial \%1, -
- connect, -
- set macro error off
- def nasa - ; Get latest news from NASA
- telnet spacelink.msfc.nasa.gov
- end
-
- :VMS ; VMS and OpenVMS
- def mydial set modem telebit, - ; Macro for dialing out...
- set macro error on, -
- set line txa5, -
- set speed 19200, -
- dial \%1, -
- connect, -
- set macro error off
- define on_exit - ; Print a message when Kermit exits
- echo Returning you to \v(system) now.
- end
-
- :OS/2 ; OS/2 customizations...
- ;set modem hayes ; I have a Hayes modem
- set port com2 ; on communication port 3
- set speed 19200 ; at this speed
- set flow rts/cts ; It uses hardware flow control
- set server display on ; Show file display in server mode too
- ;set file type binary
-
- ; Character sets, change if necessary. In OS/2, your current PC code page is
- ; used automatically as the FILE character-set and as the local half of your
- ; TERMINAL character-set.
- ;
- set command byte 8 ; Use 8 bits between Kermit and console
- set xfer char latin1 ; Use Latin-1 for text file transfer
- set term char latin1 ; And use Latin-1 during CONNECT mode
-
- ; Key redefinitions
- ;
- ;set key \27 \96 ; Swap the Escape and Accent-Grave keys
- ;set key \96 \27 ; during CONNECT mode.
-
- ; And so on, you get the idea...
- ; Fill in the sections that apply to you.
-
- :OS9/68K ; OS-9
- :AOS/VS ; Data General AOS/VS
- :Amiga ; Commodore Amiga
- :Atari_ST ; Atari ST
- :Macintosh ; Apple Macintosh
- :unknown ; Others
-
- ; (End of CKERMOD.INI)
-
- ; FILE: UOFS_KBD.INI
- ; 03 December 1992 - Kevin Lowey (Lowey@Sask.Usask.CA)
- ;
- ; University of Saskatchewan Extended Keyboard definitions
- ; for OS/2 C-Kermit 5A(188)
- ;
- ; CHANGE LOG
- ; ~~~~~~~~~~
- ; When Who What
- ; 921130 KVL Created initial file for 101-key keyboard
- ; 921203 KVL Added ALT-Pageup and ALT-Pagedown to preserve screen scroll
- ; Sent to Columbia University and put on ftp.usask.ca
- ;
- ; USAGE
- ; ~~~~~
- ; To use this file, add the following line to your CKERMOD.INI file,
- ; in the OS/2 section. Make sure the NUM-LOCK key is off.
- ;
- ; DESCRIPTION
- ; ~~~~~~~~~~~
- ; This is a key definition file for the extended 101 and 102-key keyboards.
- ; It may also work with other keyboards.
- ;
- ; It works by defining the numeric and other keys on the number pad to
- ; the equivalent ALT- key definitions normally used in C-Kermit.
- ; For example, the Keypad 0 key is defined to be equivalent to ALT-0.
- ; See the table below for a full description of keys defined.
- ;
- ; Numlock must be OFF for this to work. When Numlock is on, C-Kermit
- ; sees both the numeric keypad keys, and the number keys on the top row of
- ; the keyboard as the same, so I cannot redefine the keys when numlock
- ; is on.
- ;
- ; The numlock key is the logical choice to define as the PF1 key.
- ; Unfortunately, C-Kermit does not let me define the NUMLOCK key. Instead,
- ; I defined the PAGEUP key (the closest definable key not on the number
- ; pad) as PF1. This interferes with the scrollback feature in C-Kermit,
- ; so I defined ALT-Pageup to be the Pageup key, and for consistancy the
- ; ALT-PAGEDOWN key is the PAGEDOWN key. This means the scroll back
- ; function has been moved to the ALT-PAGEUP key, instead of just pageup.
- ;
- ; This keyboard layout preserves the default C-Kermit keyboard definitions
- ; for backward compatibility. The only exception is the moving of Pageup
- ; to ALT-Pageup, as mentioned above.
- ;
- ;
- ;
- Echo Make sure NUM-LOCK is off.
- ;
- ; PC New Definition DEC VT100 Key
- set key \338 \385 ; kp0 ALT-0 kp0
- set key \339 \323 ; KPdot F9 KPdot
- set key \335 \376 ; KP1 ALT-1 KP1
- set key \336 \377 ; KP2 ALT-2 KP2
- set key \337 \378 ; KP3 ALT-3 KP3
- set key \525 \324 ; KPEnter F10 KPEnter
- set key \331 \379 ; KP4 ALT-4 KP4
- set key \332 \380 ; KP5 ALT-5 KP5
- set key \333 \381 ; KP6 ALT-6 KP6
- set key \555 \319 ; KPPlus F5 KPMinus
- set key \334 \322 ; ALT-KPPlus F8 KPComma
- set key \327 \382 ; KP7 ALT-7 KP7
- set key \328 \383 ; KP8 ALT-8 KP8
- set key \329 \384 ; KP9 ALT-9 KP9
- set key \559 \316 ; KP/ F2 PF2
- set key \554 \317 ; KP* F3 PF3
- set key \557 \318 ; KP- F4 PF4
- set key \585 \315 ; PageUp F1 PF1
- set key \409 \585 ; ALT-Pageup PageUp (For scrollback)
- set key \417 \593 ; ALT-PageDown PageDown (For scrollforward)
- ;
- set terminal bytesize 8
- set terminal color normal white cyan
- dial 123-4567
- connect
-
-
- end
-
-
-