home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / apps / 9475 < prev    next >
Encoding:
Text File  |  1992-12-20  |  8.5 KB  |  239 lines

  1. Path: sparky!uunet!spool.mu.edu!caen!kuhub.cc.ukans.edu!parsifal.umkc.edu!vax1.umkc.edu!ghdai
  2. Newsgroups: comp.os.os2.apps
  3. Subject: CKermit.INI for 5A(188), OS/2 2.0
  4. Message-ID: <1992Dec17.190114.1@vax1.umkc.edu>
  5. From: ghdai@vax1.umkc.edu
  6. Date: 17 Dec 92 19:01:14 CST
  7. Organization: University of Missouri - Kansas City
  8. NNTP-Posting-Host: vax1.umkc.edu
  9. Lines: 228
  10.  
  11. I see many people asking for C-Kermit help.  I'm using C-Kermit 5A(188), 23/
  12. Nov/92, for OS/2 2.0 right now (and I believe you can find it at Hobbes).
  13. You need to dial first and then use connect, e.g.,
  14.  
  15. dial 123-4567
  16. connect
  17. I'm enclosing my CKERMIT.INI file in the following for an important reason:
  18. it includes a portion that redefine the keypad keys in order to make the
  19. keyboard like a real VT-100 keyboard.  Although it contains several files
  20. I got from several ftp-sites and therefore something redundant (I don't
  21. want to bother making it perfect), it is something really work.  You may 
  22. delete anything garbage in it.
  23.  
  24. ------ Cut here ------
  25. EXTPROC d:\Kermit\CKOKer32.EXE
  26. ;
  27. ; C-Kermit initialization file for OS/2.
  28. ;
  29. ; Install in same directory with C-Kermit,
  30. ; and make sure that directory is in your OS/2 PATH.
  31. ;
  32. Echo Executing \v(cmdfile)...
  33.  
  34. ; Dialing and communications
  35. ;
  36. set dial display on             ; Let me watch dialing
  37. if exist d:/Kermit/ckermit.kdd -
  38.   set dial directory -
  39.   D:/Kermit/ckermit.kdd         ; This is my dialing directory
  40. ;
  41. set modem hayes
  42. set line com3
  43. set speed 2400
  44. set flow xon/xoff
  45. ;set file type binary
  46.  
  47. ; File transfer preferences
  48. ;
  49. set file display fullscreen     ; Use the fullscreen file transfer display   
  50. set receive packet-length 1000  ; Use 1000-character Kermit packets 
  51. set window 2                    ; Use 2 window slots
  52. set block 3                     ; Use 16-bit CRC error checking        
  53.  
  54. ; Macro and prompt definitions
  55. ;
  56. ;define cls echo \27[H\27[2J     ; Define CLS command to clear the screen
  57. ;define os2 push            ; Make OS2 a synonym for PUSH, RUN, etc.
  58. set prompt [\v(dir)] C-Kermit>  ; Make prompt show my current directory
  59.  
  60. ;These four lines are commented out because they are moved to the very end
  61. ;  of this file.  They can be deleted.
  62. ;set terminal bytesize 8
  63. ;set terminal color normal white cyan
  64. ;dial 235-1491
  65. ;connect
  66.  
  67. ; File CKERMOD.INI, Sample C-Kermit 5A customization file for OS/2.
  68. ;
  69. ; This file, which is ONLY A SAMPLE, should be called:
  70. ;
  71. ;   .mykermrc   (UNIX and OS-9)
  72. ;   CKERMOD.INI (VMS, OpenVMS, AOS/VS, OS/2, Amiga, Atari ST)
  73. ;
  74. ; MODify it to suit your needs and preferences, and install it in the same
  75. ; directory as your C-Kermit initialization file.  The design of this file
  76. ; lets you fill in a section for each different operating system where you
  77. ; run C-Kermit.  This file is executed automatically by the standard C-Kermit
  78. ; initialization file, CKERMIT.INI (or .kermrc).
  79. ;
  80. ; Authors: Christine Gianone, Frank da Cruz, Columbia University.
  81. ; Date:    23 November 1992
  82.  
  83. COMMENT - Settings that apply to all the systems I use:
  84. ;
  85. set delay 1            ; I escape back quickly
  86. set dial display on        ; I like to watch C-Kermit dial
  87. set window 2                    ; Use 2 window slots
  88. set block 3                     ; Use 16-bit CRC error checking        
  89. set receive packet-length 1000  ; Use 1000-character Kermit packets 
  90.  
  91. ; The remaining commands in this file depend on the script programming
  92. ; language.  Here we make sure we have it, then we use it to go to the
  93. ; section that applies to the type of system where C-Kermit is running:
  94. ;
  95. set take error on        ; Make errors fatal temporarily
  96. check if            ; Do we have an IF command?
  97. set take error off        ; Yes we do, back to normal
  98. goto \v(system)            ; Go execute system-dependent commands
  99.  
  100. :UNIX                ; UNIX, all versions...
  101. set delay 1            ; I escape back quickly
  102. def mydial set modem hayes, -    ; Define a macro for dialing out...
  103.    set macro error on, -
  104.    set line /dev/acu, -
  105.    set speed 2400, -
  106.    dial \%1, -
  107.    connect, -
  108.    set macro error off    
  109. def nasa -            ; Get latest news from NASA
  110.    telnet spacelink.msfc.nasa.gov
  111. end
  112.  
  113. :VMS                ; VMS and OpenVMS
  114. def mydial set modem telebit, -    ; Macro for dialing out...
  115.    set macro error on, -
  116.    set line txa5, -
  117.    set speed 19200, -
  118.    dial \%1, -
  119.    connect, -
  120.    set macro error off
  121. define on_exit -        ; Print a message when Kermit exits
  122.    echo Returning you to \v(system) now.
  123. end
  124.  
  125. :OS/2                ; OS/2 customizations...
  126. ;set modem hayes                 ; I have a Hayes modem
  127. set port com2                   ; on communication port 3
  128. set speed 19200                  ; at this speed
  129. set flow rts/cts                ; It uses hardware flow control
  130. set server display on        ; Show file display in server mode too
  131. ;set file type binary
  132.  
  133. ; Character sets, change if necessary.  In OS/2, your current PC code page is
  134. ; used automatically as the FILE character-set and as the local half of your
  135. ; TERMINAL character-set.
  136. ;
  137. set command byte 8              ; Use 8 bits between Kermit and console
  138. set xfer char latin1            ; Use Latin-1 for text file transfer
  139. set term char latin1            ; And use Latin-1 during CONNECT mode
  140.  
  141. ; Key redefinitions
  142. ;
  143. ;set key \27 \96                 ; Swap the Escape and Accent-Grave keys
  144. ;set key \96 \27                 ; during CONNECT mode.
  145.  
  146. ; And so on, you get the idea...
  147. ; Fill in the sections that apply to you.
  148.  
  149. :OS9/68K            ; OS-9
  150. :AOS/VS                ; Data General AOS/VS
  151. :Amiga                ; Commodore Amiga
  152. :Atari_ST            ; Atari ST
  153. :Macintosh            ; Apple Macintosh
  154. :unknown            ; Others
  155.  
  156. ; (End of CKERMOD.INI)
  157.  
  158. ; FILE: UOFS_KBD.INI
  159. ; 03 December 1992 - Kevin Lowey (Lowey@Sask.Usask.CA)
  160. ;
  161. ; University of Saskatchewan Extended Keyboard definitions
  162. ; for OS/2 C-Kermit 5A(188)
  163. ;
  164. ; CHANGE LOG
  165. ; ~~~~~~~~~~
  166. ; When   Who What
  167. ; 921130 KVL Created initial file for 101-key keyboard
  168. ; 921203 KVL Added ALT-Pageup and ALT-Pagedown to preserve screen scroll
  169. ;            Sent to Columbia University and put on ftp.usask.ca
  170. ;
  171. ; USAGE
  172. ; ~~~~~
  173. ; To use this file, add the following line to your CKERMOD.INI file, 
  174. ; in the OS/2 section.  Make sure the NUM-LOCK key is off.
  175. ;
  176. ; DESCRIPTION
  177. ; ~~~~~~~~~~~
  178. ; This is a key definition file for the extended 101 and 102-key keyboards. 
  179. ; It may also work with other keyboards.
  180. ;
  181. ; It works by defining the numeric and other keys on the number pad to
  182. ; the equivalent ALT- key definitions normally used in C-Kermit.
  183. ; For example, the Keypad 0 key is defined to be equivalent to ALT-0.
  184. ; See the table below for a full description of keys defined.
  185. ;
  186. ; Numlock must be OFF for this to work.  When Numlock is on, C-Kermit
  187. ; sees both the numeric keypad keys, and the number keys on the top row of
  188. ; the keyboard as the same, so I cannot redefine the keys when numlock
  189. ; is on.
  190. ;
  191. ; The numlock key is the logical choice to define as the PF1 key. 
  192. ; Unfortunately, C-Kermit does not let me define the NUMLOCK key. Instead,
  193. ; I defined the PAGEUP key (the closest definable key not on the number
  194. ; pad) as PF1.  This interferes with the scrollback feature in C-Kermit,
  195. ; so I defined ALT-Pageup to be the Pageup key, and for consistancy the
  196. ; ALT-PAGEDOWN key is the PAGEDOWN key.  This means the scroll back
  197. ; function has been moved to the ALT-PAGEUP key, instead of just pageup.
  198. ;
  199. ; This keyboard layout preserves the default C-Kermit keyboard definitions
  200. ; for backward compatibility.  The only exception is the moving of Pageup
  201. ; to ALT-Pageup, as mentioned above.
  202. ;
  203. ;
  204. ;
  205. Echo Make sure NUM-LOCK is off.
  206. ;
  207. ;                     PC            New Definition  DEC VT100 Key  
  208. set key \338 \385 ;  kp0            ALT-0           kp0
  209. set key \339 \323 ;  KPdot          F9              KPdot
  210. set key \335 \376 ;  KP1            ALT-1           KP1
  211. set key \336 \377 ;  KP2            ALT-2           KP2
  212. set key \337 \378 ;  KP3            ALT-3           KP3
  213. set key \525 \324 ;  KPEnter        F10             KPEnter
  214. set key \331 \379 ;  KP4            ALT-4           KP4
  215. set key \332 \380 ;  KP5            ALT-5           KP5
  216. set key \333 \381 ;  KP6            ALT-6           KP6
  217. set key \555 \319 ;  KPPlus         F5              KPMinus
  218. set key \334 \322 ;  ALT-KPPlus     F8              KPComma
  219. set key \327 \382 ;  KP7            ALT-7           KP7
  220. set key \328 \383 ;  KP8            ALT-8           KP8
  221. set key \329 \384 ;  KP9            ALT-9           KP9
  222. set key \559 \316 ;  KP/            F2              PF2
  223. set key \554 \317 ;  KP*            F3              PF3
  224. set key \557 \318 ;  KP-            F4              PF4
  225. set key \585 \315 ;  PageUp         F1              PF1
  226. set key \409 \585 ;  ALT-Pageup     PageUp   (For scrollback)
  227. set key \417 \593 ;  ALT-PageDown   PageDown (For scrollforward)
  228. ;
  229. set terminal bytesize 8
  230. set terminal color normal white cyan
  231. dial 123-4567
  232. connect
  233.  
  234.  
  235. end
  236. 
  237.  
  238.  
  239.