; FILE CCKERMIT.INI ; ; Sample initialization file for CC-DOS Kermit 2.32. ; Quanfang Zhang, Dept. of C.S., Zhejiang University, P.R.China, July 1991 echo CC-DOS/MS-DOS Kermit 2.32 initialization file... COMMENT - Macro definitions section... ; Macro for communicating with UNIX, VAX/VMS, and similar systems: def vax set par non, set flo x, set hand no, 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 ; Additional DOS commands available directly from the CC-Kermit> prompt. ; First define a FATAL error macro. def fatal echo Error: \%1\13, def \%1, stop ; 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 CC-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: \%\13,def \%1,hangup,stop 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 ; in the 8-bit environment set terminal vt102 ; Emulate DEC VT102 set terminal roll off ; Keep rolled-back screens where they are set terminal wrap on ; Tell Kermit to do line wrap set terminal cursor underline ; Underline cursor (rather than block) COMMENT - File transfer settings set receive packet-length 94 ; Regular-size packets set attributes on ; Use file-attribute packets 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 key of ; use DOS function call to read keyboard set terminal color 0 34 47 ; Terminal color is blue on white echo \13Smile!