Kermit 95 Command-Line Options

Command line options are operands given on the shell command line used to start a program, such as K95, that can be processed by the program after it starts. For example:

  k95 -Y -l com2 -b 57600

each letter preceded by a dash is an option. Some options (like "-l" and "-b") take operands (like "com1" or "57600"), others (like "-Y") don't.

Command line options are documented in Using C-Kermit, Appendix I, augmented by the C-Kermit 7.0 Updates and C-Kermit 8.0 Updates documents. This section lists options that are specific to K95.

-l _number
The -l option is normally used to specify the name of the communications device to use. However, if instead of a device name, you give a number preceded by an underscore, e.g.:

  k95 -l _1234

this is interpreted as a Windows device handle for a communications connection that has already been opened by another process. This allows other programs to make connections and then use Kermit 95 to peform selected tasks on them. When K95 is started this way, it bypasses all device initialization and conditioning, and it does not close the device when it exits.

-j _number
The -j _number option is similar to -l one, except a network connection is assumed for the open handle. Kermit 95 is prepared to accept Telnet negotiations but does not initiate them.

-J host [ port ]
The -J command-line option makes Kermit 95 act just like Telnet. Follow the -J with whatever you would put on the Telnet command line: host name or IP address, optionally followed by the service port name or number, e.g.:

  telnet 3000

  k95 -J
  k95 -J 3000

When started this way, Kermit 95 makes a Telnet connection to the host and enters CONNECT (Terminal) mode automatically. It lets you escape back and reconnect any number of times (e.g. to transfer files or anything else you want), but when the connection is broken (typically, when you log out of the remote host or service), Kermit 95 exits and disappears automatically.

The TELNET.EXE and RLOGIN.EXE programs that come with Kermit 95 invoke K95.EXE in this way.

NOTE: OS/2 Telnet has a different command-line syntax; the TELNET.EXE program that comes with Kermit/2 converts from OS/2 Telnet syntax to Kermit/2.

-J _number
-J $number
When started this way, K95 treats the number as a TCP/IP socket handle. If the number is prefaced with an underscore, the socket is being used as a telnet client connection. If the number is prefaced by a U.S. currency (dollar) sign, the socket is being used as a telnet server connection.

-# number
Startup Flags. Note: the # is literal, follow it by a number (e.g. -# 4). The number is bit mapped, the sum of the desired start options:

   1 - Disable Win95 special fixes
   2 - Do not load optional network dlls
   4 - Do not load optional tapi dlls
   8 - Do not load optional kerberos dlls
  16 - Do not load optional zmodem dlls
  32 - Use stdin for input instead of the console
  64 - Use stdout for output instead of the console
 128 - Do not terminate process in response to Session Logoff

Options 2, 4, 8, and 16 can be used to speed up K95 program load and termination if you are not using the corresponding features, and/or to avoid bugs in the corresponding DLLs (if you don't need to use them).

Options 32 and 64 are for interfacing K95 to other programs, such as screen readers:

Option 128 is for use when K95 is started as a service on Windows NT or Windows 2000.

-N number
(OS/2 only) NETBIOS adapter number, to be used when making NETBIOS connections and there is more than one NETBIOS adapter to choose from. Specify number as X to disable the NETBIOS adapter query.

--xpos:n (K95G only)
X-coordinate of window position, expressed as the number of pixels to the right of the upper left screen corner

--ypos:n (K95G only)
Y-coordinate of window position, expressed as the number of pixels below the upper left screen corner.

--fontname:s (or --facename:s) (K95G only)
Font/typeface name: string with _ (underscore) replacing blank.

--fontsize:n (K95G only)
Font point size, number, such as 14. Half sizes can be given; e.g. 14.5.

Screen height (number of rows).

Screen width (number of columns).

Terminal emulation name, such as vt220.

Window title (string may contain spaces, which case you should enclose the the entire option in doublequotes: "--title:This Is the Title".

The K95G window is to include no menu bar.

The K95G window is to include no tool bar.

The K95G window is to include no status bar.

Equivalant to --nomenubar --notoolbar --nostatusbar.

Disallows invocation of external applications or commands from within Kermit 95 (GUI or Console). This also disables K95G's Dialer button.

Prevents the user from manually returning to the Command screen from the Terminal screen: disables the CONNECT-mode escape sequence as well as the \Kexit keyboard verb.

Prevents the user from scrolling back to previous screens: disables the scrollback-related keyboard verbs as well as the GUI scrollbars (but does not make the scrollbars disappear).

Combines --noscroll, --noescape, --nopush, --nobars and to create a "captive" session.

Starts K95G maximized (full screen). Equivalent to SET GUI WINDOW RUN-MODE MAXIMIZE.

Starts K95G minimized (i.e. appearing only on the Windows task bar). Equivalent to SET GUI WINDOW RUN-MODE MINIMIZE.

Screen size changes are to result in font scaling (this is the default).

Screen size changes are to leave the font size alone and change the number screen rows and columns.

Click Back on your Browser's Toolbar to return.