Previous Topic: HELP Return Code

Next Topic: INQINPUT Return Codes

EPI INQINPUT—Input Indicator

Use this command before issuing the TYPE command, to make sure that the virtual keyboard is not locked (that is, its input inhibited indicator is off and it can accept input from the REXX program that issued the INQINPUT command).

This command has the following format:

ADDRESS EPI "INQINPUT keywords"
  {termname|*}
  [NOWAIT|WAIT]
termname

Defines the name of the terminal about which you are inquiring.

*

Inquire about the state of the current terminal defined through the SETTERM command.

NOWAIT

(Optional) Tells EPI to return the current state of the input indicator immediately. To force this indicator off, allowing the program to send data to the virtual terminal, issue this command:

TYPE termname !RESET

Issuing the above command does not prevent the external product from turning the indicator back on.

WAIT

(Optional) Tells EPI to place the program issuing the INQINPUT command into a wait state until the external product connected to this virtual terminal has unlocked the keyboard.

Example: INQINPUT WAIT

The following code causes the REXX program interacting with the TERM2 virtual terminal to pause until the virtual keyboard can accept input:

INQINPUT TERM2 WAIT