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.
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.
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
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