CWTELNET Command Line Parameters

Command line arguments make it possible to create icons with predefined command line arguments which can automate many processes related to using CWTELNET. Following are the command line arguments and their values. These options can be specified in either upper or lower case.

/c
Force upper case. This option forces all characters entered to upper case. Early 3270 terminals only had upper case characters. Many software systems were designed to work only with upper case or to assume that all input would be upper case.
/d<n>

Set the debug level. When this option is included, CWTELNET opens a debug window that receives logging information. This information is also written to a file name CWDEBUG.LOG that is created or appended to in the default directory for the program. The type of logging included is controlled by the value of <n>. If <n> is omitted, all debugging information is logged. The following values are additive. The value of <n> is the sum of the options you wish included in the debug log.

Value Meaning
1

Show ANSI control strings. This is used for debugging the handling of ANSI and VT100 control strings when operating in non-TN3270 mode.

2

Show WINSOCK communications. CWTELNET will log all sends and receives between the host and CWTELNET.

4

Show keyboard values as entered.

8

Show ANSI Screen. This is used to debug the graphic rendition of ANSI sequences. It generates a large amount of logging information.

16

Shows printing information. This option causes all printer interaction to be displayed.

32

Show script execution. This is useful for debugging scripts.

64

Show scanner interaction

For example, if you wanted to see ANSI control strings and printer interaction, you would code

/d17

since ANSI strings have a value of 1 and printing information has a value of 16.

/e<emulation>
Forces the emulation to value specified by <emulation>. Valid values are VT100, VT320, ANSI, SCO, IBM-3278, IBM-3278-2, IBM-3278-3, IBM-3278-4, and IBM-3278-5.
/f
Enables the CWTELNET FTP server feature.
/g<port>,<baud>,<parity>,<scanner>
Configure the scanner. <port> is 1 for COM1, 2 for COM2, etc. <baud> is any valid baud rate. <parity> is e for even, o for odd, and n for none. Even and odd parity assume 7 bit characters, none assumes 8 bit characters. <scanner> is 0 or omitted for a Scantron scanner and 1 for an OpScan scanner.
/h<hostname>
<hostname> is the name or IP address for the host. CWTELNET also allows the host to be first parameter specified without /h preceding it. This allow CWTELNET to be called automatically from web browsers.
/k
Set the keypad ENTER key to be a 3270 NEWLINE key.
/l<device>,<port>

The values for <device> and <port> are the valid printer names and ports defined on your system. The easiest way to determine the correct values is to bring up CWTELNET with no options. CWTELNET will display the default printer name and port such as "HP Laserjet III on \\herman\hp". The information to the left of the word "on" is the printer device. The information to the right of the work "on" is the port. If either value contains spaces, that value must be enclosed in quotation marks. An example follows:

/l"HP Laserjet III",\\herman\hp

/m<3278 model>
Forces emulation to the specified model IBM 3278 terminal. Valid models are 2 through 5.
/p<port>
Specifies the port for the connection. The default is port 23.
/r<script name>

Specifies the script name including the file extension. If the script is not in the default directory then the path to the script must be specified. Some examples:

/rsis.ccl

/rC:\WINSOCK\SCRIPTS\NEWS.CCL

/t<timer print seconds>
When CWTELNET is emulating an IBM 328X printer, the host gives no indication that a print job has completed. This values specifies the number of seconds to wait after print information has been received before automatically closing the print job. The default is 5 seconds. This value can be enlarged to accommodate slow programs. Larger values will cause a longer delay to receive printing. Small values give good response time but can split the output for slow programs.
/u
Forces the screen to 24 rows. The screen normally has 25 rows in non-TN3270 mode.