CWTELNET's scripting language provides automation for common login functions that require several steps. The same scripting language is used for CWTELNET, CWTELN32, C_TELNET, and TERM. Using the scripting feature can completely eliminate the login process with the exception of entering your user name and password.
Command Syntax
SEND <string> and SEND BREAK are the only forms valid for TERM.
If SEND <string> is specified then string is a string of characters enclosed in quotation marks. The string can contain escaped sequences as follows:| Sequence | Meaning |
|---|---|
| \\ |
Causes a single '\' character to be send to the host. |
| \a |
Sends the bell character to the host. The bell character is 0x07. |
| \b |
Sends the backspace character to the host or 0x08. |
| \f |
Sends the form feed character to the host or 0x0C. |
| \n |
Sends the ASCII new line character or 0x0A. |
| \r |
Sends the ASCII carriage return character or 0x0D. |
| \t |
Sends the TAB character or 0x09. |
| \' |
Sends an apostrophe. |
| \" |
Sends a quotation mark character |
| \v |
Sends a VERTICAL TAB character. |
| \x<nn> |
Interprets <nn> as a hexadecimal character |
| \<nn> |
Interprets <nn> as an octal character. |
Sets the specified variable to the specified value. The valid variables are:
| Variable | Possible values |
|---|---|
| $BARCODE_HEIGHT |
Specifies the height of barcodes produced by barcode printing escapes. |
| $LPRT |
Sets the LPRT port. The value specified should be 1 for LPRT1, 2 for LPRT2 or 3 for LPRT3 |
| $DISPLAY_MODE |
Specifies the mode number to use for input fields. This parameter applies to C_TELNET only. It specifies the rendition to be used for input fields when operating in TN3270 mode. You can select the proper mode by using the ALT-F11 sequence while in a TN3270 session with input fields displayed on the screen. |
| $PRINT_BINARY |
Specify YES to cause this session to print binary output. This applies only to C_TELNET. |
| $RC |
Sets the return code value for C_TELNET. Normally C_TELNET exits with a return code of zero. This can be used to alter the behavior of an MS-DOS batch file. |