home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / cko191.zip / ckermod.ini < prev    next >
Text File  |  1995-04-17  |  10KB  |  249 lines

  1. ; File CKERMOD.INI, Sample C-Kermit 5A(191) customization file.
  2. ;
  3. ; This file, which is ONLY A SAMPLE, should be called:
  4. ;
  5. ;   .mykermrc   (UNIX, OS-9, Aegis)
  6. ;   CKERMOD.INI (VMS, OpenVMS, AOS/VS, OS/2, Amiga, Atari ST)
  7. ;   ckermod.ini (Stratus VOS)
  8. ;
  9. ; MODify it to suit your needs and preferences, and install it in the same
  10. ; directory as your C-Kermit initialization file.  The design of this file
  11. ; lets you fill in a section for each different operating system where you
  12. ; run C-Kermit.  This file is executed automatically by the standard C-Kermit
  13. ; initialization file, CKERMIT.INI (or .kermrc).
  14. ;
  15. ; Authors:  Christine Gianone, Frank da Cruz, Jeffrey Altman, 
  16. ;           Columbia University.
  17. ; Date:     23 November 1992 for C-Kermit 5A(188).
  18. ; Modified: 30 June 1993 for edit 189.
  19. ;           04 October 1994 for edit 190.
  20. ;           17 April 1995 for edit 191.
  21.  
  22. ECHO Executing SAMPLE C-Kermit customization file \v(cmdfile)...
  23. ECHO { Please edit this file to reflect your needs and preferences.}
  24. ;
  25. ; ... and then remove the ECHO commands above.
  26.  
  27. COMMENT - Settings that apply to all the systems I use:
  28. ;
  29. set delay 1                     ; I escape back quickly
  30. set dial display on             ; I like to watch C-Kermit dial
  31. set window 4                    ; Use 4 window slots
  32. set block 3                     ; Use 16-bit CRC error checking        
  33. set receive packet-length 2000  ; Enable reception of long packets
  34.  
  35. ; DIAL init-strings for various high-speed modems that are not explicitly
  36. ; supported by Kermit's SET MODEM command.  To use, first uncomment the
  37. ; following block of commands (i.e. remove the semicolon from each line):
  38. ;
  39. ;   set modem hayes
  40. ;   set speed 57600
  41. ;   if fail set speed 38400
  42. ;   if fail set speed 19200
  43. ;   if fail set speed 9600
  44. ;   set dial speed-matching off
  45. ;
  46. ; Then uncomment the SET DIAL INIT-STRING for your modem:
  47. ;
  48. ; Practical Peripherals 14400:
  49. ;   set dial init ATQ0W1S95=47&D2X4S2=43N1S37=11&K3&Q5S36=7S46=2S82=128\13
  50. ; AT&T DataPort 14400:
  51. ;   set dial init ATQ0X6&C1&D2&Q0S84=0\\Q3%B14400S41=1S78=0\\N7%C1\\K5\13
  52. ; Boca 14.4 Faxmodem:
  53. ;   set dial init -
  54. ;     ATQ0W1&D2X4S95=47F10S37=11N1&K3S82=128&Q5S36=7S46=138\\N3S48=7\13
  55. ; Hayes Ultra 144 (use 38400 bps):
  56. ;   set dial init -
  57. ;     ATQ0W1X4S87=28&D2S95=46S37=11N1&K1&K3&Q5S36=7S38=1S46=2S48=7\13
  58. ; Multitech MT1432:
  59. ;  set dial init ATQ0&Q1X4$SB57600$MB14400&E4%E1&E1&E15$BA0\13
  60. ; Practical Peripherals 14400FXMT:
  61. ;   set dial init ATQ0W1S95=47&D2X4S2=43N1S37=11&K3&Q5S36=7S46=2S82=128\13
  62. ; USR Sportster or Courier 14400 or 28800:
  63. ;   set dial init ATQ0&S0X4&A3&D2&B1&H1&R2&N0&K1&M4&Y3\13
  64. ; Zoom Telephonics 14400:
  65. ;   set dial init ATQ0W1&D2S95=47X4S37=11&K3S82=128&Q5S36=7S46=138S38=1\13
  66. ; Zyxel U-1496E:
  67. ;   set dial init ATQ0L1S11=55S0=0V1E1&D2X5&N0N1&H3&Y1&K4\13
  68. ;
  69. ; Consult your modem manual to create init-strings for other modems.
  70.  
  71. ; The remaining commands in this file depend on the script programming
  72. ; language.  Here we make sure we have it, then we use it to go to the
  73. ; section that applies to the type of system where C-Kermit is running:
  74. ;
  75. set take error on               ; Make errors fatal temporarily
  76. check if                        ; Do we have an IF command?
  77. set take error off              ; Yes we do, back to normal
  78.  
  79. check FORWARD
  80. if success forward \v(system)
  81. else goto \v(system)            ; Go execute system-dependent commands
  82.  
  83. :UNIX                           ; UNIX, all versions...
  84. set delay 1                     ; I escape back quickly
  85. if > \v(version) 501189 if remote end
  86. set terminal apc off            ; Change to ON if desired
  87. def mydial set modem hayes, -   ; Define a macro for dialing out...
  88.    set line /dev/acu, -
  89.    if fail end 1, -
  90.    set speed 2400, -
  91.    if fail end 1, -
  92.    dial \%1, -
  93.    if fail end 1, -
  94.    connect
  95. def nasa -                      ; Get latest news from NASA
  96.    telnet spacelink.msfc.nasa.gov
  97. end                             ; End of UNIX section
  98.  
  99. :VMS                            ; VMS and OpenVMS
  100. define on_exit -                ; Print a message when Kermit exits
  101.    echo Returning you to \v(system) now.
  102. if > \v(version) 501189 if remote end
  103. set terminal apc off            ; Change to ON if desired
  104. def mydial set modem telebit, - ; Sample macro for dialing out...
  105.    set line txa5, -
  106.    if fail end 1, -
  107.    set speed 19200, -
  108.    if fail end 1, -
  109.    dial \%1, -
  110.    if fail end 1, -
  111.    connect
  112. end                             ; End of VMS section
  113.  
  114. :OS/2                           ; OS/2 customizations...
  115. set modem hayes                 ; I have a Hayes modem
  116. set port com1                   ; on communication port 1
  117. set speed 19200                 ; at this speed
  118. set flow rts/cts                ; It uses hardware flow control
  119. set terminal apc off            ; Change to ON if desired
  120. set server display on           ; Show file display in server mode too
  121. ;
  122. ; OS/2 character sets, change if necessary.  In OS/2, your current PC code
  123. ; page is used automatically as the FILE character-set and as the local half
  124. ; of your TERMINAL character-set.
  125. ;
  126. set command byte 8              ; Use 8 bits between Kermit and console
  127. set xfer char latin1            ; Use Latin-1 for text file transfer
  128. set term char latin1            ; And use Latin-1 during CONNECT mode
  129. ;
  130. ; Macro for "ANSI" terminal emulation
  131. ;
  132. define ANSI set term type ansi
  133.  
  134. echo { See OS/2 section for sample key mappings and screen colors.}
  135. ;
  136. ; Sample OS/2 key redefinitions.  As distributed, they are
  137. ; "commented out" by the leading semicolon.  To "uncomment" a command,
  138. ; remove the semicolon from the left margin.  Add, remove, or change
  139. ; key mapping commands to suit your needs and preferences.
  140. ; See pages 428-431 of "Using C-Kermit" for details, plus CKERMIT.UPD,
  141. ; and see CKOVTK2.INI for a complete VT220 key mapping.
  142. ;
  143. ; set key \27 \96               ; Swap the Escape and Accent-Grave keys
  144. ; set key \96 \27               ; ...during CONNECT mode.
  145. ; set key \127 \8               ; Backspace key sends BS rather than DEL.
  146.  
  147. COMMENT - Terminal emulation screen colors:
  148. ;
  149. ; TERMINAL-SCREEN   = Terminal emulation screen (synonym: "normal")
  150. ; BORDER            = Border around terminal screen (fullscreen sessions only)
  151. ; HELP-SCREEN       = Popup help screens
  152. ; STATUS-LINE       = Status line
  153. ; UNDERLINED-TEXT   = Color for simulating underlined text
  154. ; SELECTION         = Color for selected text in Mark Mode
  155. ;
  156. COMMENT - Sample color setup, change to suit your preferences...
  157. set terminal color border          blue         ; blue border
  158. set terminal color terminal-screen lgray blue   ; light gray on blue
  159. set terminal color underline       lgray black  ; light gray on black
  160. set terminal color status          black cyan   ; black on cyan
  161. set terminal color help            black brown  ; black on brown
  162. set terminal color selection       black red    ; black on red
  163.  
  164. COMMENT - Use OS/2 System Sounds
  165. set bell audible system-sounds
  166.  
  167. COMMENT - ALTERNATIVE DIAL PROCEDURE
  168. ; Sample macro showing how to add a new modem type, in this case
  169. ; Practical Peripherals PM14400FXMT - see CKERMIT.UPD for discussion.
  170. define PPDIAL -
  171.   set modem hayes, - ; Build on basic Hayes modem type.
  172.   set port 1, -      ; Change or remove this if necessary.
  173.   set flow none, -
  174.   set speed 57600, -
  175.   set dial speed-matching off, -
  176.   set dial init ATQ0W1S95=47&D2X4S2=43N1S37=11&K3&Q5S36=7S46=2S82=128\13, -
  177.   dial \%1, -
  178.   if success set flow rts, -
  179.   else end 1
  180.  
  181. COMMENT - Access to external protocols
  182. ;
  183. ; These are commented out.  If you need them, and if you have the
  184. ; software (M2ZMODEM or P), uncomment the appropriate group of commands.
  185. ; Read the CKERMIT.UPD file for further information.
  186.  
  187. ; M2ZMODEM program, external protocol
  188. ; take \m(_inidir)m2zmodem.ini
  189.  
  190. ; P v.1.01 program, external protocol
  191. ; take \m(_inidir)p101.ini
  192.  
  193. ; P v.2.00 program, external protocol
  194. ; take \m(_inidir)p200.ini
  195.  
  196. ; CEXYZ/2 program, external protocol
  197. ; take \m(_inidir)cexyz2.ini
  198.  
  199. COMMENT -- Use TERM instead of SET TERMINAL TYPE to define a variable
  200. ; _tid which can be used as the terminal type id in login scripts.
  201. def term if not def \%1 def \%1 \v(term),-
  202.   set term type \%1,-
  203.   if fail end 1,-
  204.   assign _ttype \%1,-
  205.   def _tid ,-
  206.   if eq \%1 vt320 def _tid \27[?63;1;2;4;8;9;15c,-
  207.   if eq \%1 vt220 def _tid \27[?62;1;2;6;9c-
  208.   if eq \%1 vt102 def _tid \27[?6c,-
  209.   if eq \%1 vt100 def _tid \27[?1c,-
  210.   if eq \%1 vt52  def _tid \27/Z
  211.  
  212. COMMENT --- AUTOANSWER sets the modem to answer the phone on two rings
  213. ; and places C-Kermit into server mode
  214. define autoanswer output ats0=2\13, server
  215.  
  216. end                             ; End of OS/2 section
  217.  
  218. :OS9/68K                        ; OS-9/68000
  219. if > \v(version) 501189 if remote end
  220. set line /t3                    ; I want to use /t3 at 9600 bps
  221. xif success { -
  222.     set speed 9600, -
  223.     echo { Communications line set to /t3, 9600 bps} -
  224. }
  225. end                             ; End of OS-9 section
  226.  
  227. :AOS/VS                         ; Data General AOS/VS
  228. if > \v(version) 501189 if remote end
  229. def mydial set modem hayes, -   ; Macro for dialing out with Hayes modem...
  230.    set line @con3, -            ; Only works if modem is on @con3
  231.    if fail end 1, -
  232.    set speed 2400, -            ; and is set for 2400bps
  233.    if fail end 1, -
  234.    dial \%1, -
  235.    if fail end 1, -
  236.    connect
  237. end
  238.  
  239. ; And so on, you get the idea...
  240. ; Fill in the sections that apply to you.
  241.  
  242. :Stratus_VOS            ; Stratus VOS
  243. :Amiga                          ; Commodore Amiga
  244. :Atari_ST                       ; Atari ST
  245. :Macintosh                      ; Apple Macintosh
  246. :unknown                        ; Others
  247.  
  248. ; (End of CKERMOD.INI)
  249.