Previous Topic: TYPESEC Return CodesNext Topic: TYPETEST Return Codes


EPI TYPETEST—Test a TYPE Command

The EPI TYPETEST command test-runs a TYPE command. Instead of simulating typing at a 3278 keyboard, the TYPETEST command returns the keystrokes as output lines, one per key.

EPI TYPETEST has the following format:

ADDRESS EPI "TYPETEST keywords"
{termname|*}
{text}
termname

Defines the terminal to which you are sending text.

*

Sends the text to the current virtual terminal.

text

Defines the text to send to the external product associated with this virtual terminal. This text combines literal text that is enclosed in single quotation marks, such as the text of a command and the names of keys on the 3278 keyboard, such as Enter.

EPI TYPETEST Sample Coding Statements

The following sample coding statement sends the current virtual terminal a character sequence that moves the cursor to the home position on the screen, tabs backward, erases the screen text there, enters the text K E,D and then presses the Enter key.

TYPETEST * !HOME!BACKTAB!ERASE_EOF'K E,D'!ENTER

The TYPETEST command then returns this output:

0  04  HOME
0  0C  BACKTAB
0  08  ERASE_EOF
0  7D '
0  D2  K
0  40
0  C5  E
0  6B  ,
0  C4  D
0  7D '
0  7D  ENTER

The first, one-digit field may be 0 for a normal key, 1 for a shifted key, or 2 for a key pressed while the ALT key is held down. The two-digit field is the EPI scan code (useful for debugging). The last field is the EPI host key name.