home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
archives
/
cko191.zip
/
ckermod.ini
< prev
next >
Wrap
Text File
|
1995-04-17
|
10KB
|
249 lines
; File CKERMOD.INI, Sample C-Kermit 5A(191) customization file.
;
; This file, which is ONLY A SAMPLE, should be called:
;
; .mykermrc (UNIX, OS-9, Aegis)
; CKERMOD.INI (VMS, OpenVMS, AOS/VS, OS/2, Amiga, Atari ST)
; ckermod.ini (Stratus VOS)
;
; 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, Jeffrey Altman,
; Columbia University.
; Date: 23 November 1992 for C-Kermit 5A(188).
; Modified: 30 June 1993 for edit 189.
; 04 October 1994 for edit 190.
; 17 April 1995 for edit 191.
ECHO Executing SAMPLE C-Kermit customization file \v(cmdfile)...
ECHO { Please edit this file to reflect your needs and preferences.}
;
; ... and then remove the ECHO commands above.
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 4 ; Use 4 window slots
set block 3 ; Use 16-bit CRC error checking
set receive packet-length 2000 ; Enable reception of long packets
; DIAL init-strings for various high-speed modems that are not explicitly
; supported by Kermit's SET MODEM command. To use, first uncomment the
; following block of commands (i.e. remove the semicolon from each line):
;
; set modem hayes
; set speed 57600
; if fail set speed 38400
; if fail set speed 19200
; if fail set speed 9600
; set dial speed-matching off
;
; Then uncomment the SET DIAL INIT-STRING for your modem:
;
; Practical Peripherals 14400:
; set dial init ATQ0W1S95=47&D2X4S2=43N1S37=11&K3&Q5S36=7S46=2S82=128\13
; AT&T DataPort 14400:
; set dial init ATQ0X6&C1&D2&Q0S84=0\\Q3%B14400S41=1S78=0\\N7%C1\\K5\13
; Boca 14.4 Faxmodem:
; set dial init -
; ATQ0W1&D2X4S95=47F10S37=11N1&K3S82=128&Q5S36=7S46=138\\N3S48=7\13
; Hayes Ultra 144 (use 38400 bps):
; set dial init -
; ATQ0W1X4S87=28&D2S95=46S37=11N1&K1&K3&Q5S36=7S38=1S46=2S48=7\13
; Multitech MT1432:
; set dial init ATQ0&Q1X4$SB57600$MB14400&E4%E1&E1&E15$BA0\13
; Practical Peripherals 14400FXMT:
; set dial init ATQ0W1S95=47&D2X4S2=43N1S37=11&K3&Q5S36=7S46=2S82=128\13
; USR Sportster or Courier 14400 or 28800:
; set dial init ATQ0&S0X4&A3&D2&B1&H1&R2&N0&K1&M4&Y3\13
; Zoom Telephonics 14400:
; set dial init ATQ0W1&D2S95=47X4S37=11&K3S82=128&Q5S36=7S46=138S38=1\13
; Zyxel U-1496E:
; set dial init ATQ0L1S11=55S0=0V1E1&D2X5&N0N1&H3&Y1&K4\13
;
; Consult your modem manual to create init-strings for other modems.
; 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
check FORWARD
if success forward \v(system)
else goto \v(system) ; Go execute system-dependent commands
:UNIX ; UNIX, all versions...
set delay 1 ; I escape back quickly
if > \v(version) 501189 if remote end
set terminal apc off ; Change to ON if desired
def mydial set modem hayes, - ; Define a macro for dialing out...
set line /dev/acu, -
if fail end 1, -
set speed 2400, -
if fail end 1, -
dial \%1, -
if fail end 1, -
connect
def nasa - ; Get latest news from NASA
telnet spacelink.msfc.nasa.gov
end ; End of UNIX section
:VMS ; VMS and OpenVMS
define on_exit - ; Print a message when Kermit exits
echo Returning you to \v(system) now.
if > \v(version) 501189 if remote end
set terminal apc off ; Change to ON if desired
def mydial set modem telebit, - ; Sample macro for dialing out...
set line txa5, -
if fail end 1, -
set speed 19200, -
if fail end 1, -
dial \%1, -
if fail end 1, -
connect
end ; End of VMS section
:OS/2 ; OS/2 customizations...
set modem hayes ; I have a Hayes modem
set port com1 ; on communication port 1
set speed 19200 ; at this speed
set flow rts/cts ; It uses hardware flow control
set terminal apc off ; Change to ON if desired
set server display on ; Show file display in server mode too
;
; OS/2 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
;
; Macro for "ANSI" terminal emulation
;
define ANSI set term type ansi
echo { See OS/2 section for sample key mappings and screen colors.}
;
; Sample OS/2 key redefinitions. As distributed, they are
; "commented out" by the leading semicolon. To "uncomment" a command,
; remove the semicolon from the left margin. Add, remove, or change
; key mapping commands to suit your needs and preferences.
; See pages 428-431 of "Using C-Kermit" for details, plus CKERMIT.UPD,
; and see CKOVTK2.INI for a complete VT220 key mapping.
;
; set key \27 \96 ; Swap the Escape and Accent-Grave keys
; set key \96 \27 ; ...during CONNECT mode.
; set key \127 \8 ; Backspace key sends BS rather than DEL.
COMMENT - Terminal emulation screen colors:
;
; TERMINAL-SCREEN = Terminal emulation screen (synonym: "normal")
; BORDER = Border around terminal screen (fullscreen sessions only)
; HELP-SCREEN = Popup help screens
; STATUS-LINE = Status line
; UNDERLINED-TEXT = Color for simulating underlined text
; SELECTION = Color for selected text in Mark Mode
;
COMMENT - Sample color setup, change to suit your preferences...
set terminal color border blue ; blue border
set terminal color terminal-screen lgray blue ; light gray on blue
set terminal color underline lgray black ; light gray on black
set terminal color status black cyan ; black on cyan
set terminal color help black brown ; black on brown
set terminal color selection black red ; black on red
COMMENT - Use OS/2 System Sounds
set bell audible system-sounds
COMMENT - ALTERNATIVE DIAL PROCEDURE
; Sample macro showing how to add a new modem type, in this case
; Practical Peripherals PM14400FXMT - see CKERMIT.UPD for discussion.
define PPDIAL -
set modem hayes, - ; Build on basic Hayes modem type.
set port 1, - ; Change or remove this if necessary.
set flow none, -
set speed 57600, -
set dial speed-matching off, -
set dial init ATQ0W1S95=47&D2X4S2=43N1S37=11&K3&Q5S36=7S46=2S82=128\13, -
dial \%1, -
if success set flow rts, -
else end 1
COMMENT - Access to external protocols
;
; These are commented out. If you need them, and if you have the
; software (M2ZMODEM or P), uncomment the appropriate group of commands.
; Read the CKERMIT.UPD file for further information.
; M2ZMODEM program, external protocol
; take \m(_inidir)m2zmodem.ini
; P v.1.01 program, external protocol
; take \m(_inidir)p101.ini
; P v.2.00 program, external protocol
; take \m(_inidir)p200.ini
; CEXYZ/2 program, external protocol
; take \m(_inidir)cexyz2.ini
COMMENT -- Use TERM instead of SET TERMINAL TYPE to define a variable
; _tid which can be used as the terminal type id in login scripts.
def term if not def \%1 def \%1 \v(term),-
set term type \%1,-
if fail end 1,-
assign _ttype \%1,-
def _tid ,-
if eq \%1 vt320 def _tid \27[?63;1;2;4;8;9;15c,-
if eq \%1 vt220 def _tid \27[?62;1;2;6;9c-
if eq \%1 vt102 def _tid \27[?6c,-
if eq \%1 vt100 def _tid \27[?1c,-
if eq \%1 vt52 def _tid \27/Z
COMMENT --- AUTOANSWER sets the modem to answer the phone on two rings
; and places C-Kermit into server mode
define autoanswer output ats0=2\13, server
end ; End of OS/2 section
:OS9/68K ; OS-9/68000
if > \v(version) 501189 if remote end
set line /t3 ; I want to use /t3 at 9600 bps
xif success { -
set speed 9600, -
echo { Communications line set to /t3, 9600 bps} -
}
end ; End of OS-9 section
:AOS/VS ; Data General AOS/VS
if > \v(version) 501189 if remote end
def mydial set modem hayes, - ; Macro for dialing out with Hayes modem...
set line @con3, - ; Only works if modem is on @con3
if fail end 1, -
set speed 2400, - ; and is set for 2400bps
if fail end 1, -
dial \%1, -
if fail end 1, -
connect
end
; And so on, you get the idea...
; Fill in the sections that apply to you.
:Stratus_VOS ; Stratus VOS
:Amiga ; Commodore Amiga
:Atari_ST ; Atari ST
:Macintosh ; Apple Macintosh
:unknown ; Others
; (End of CKERMOD.INI)