HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)

606 AppendixG
TERMINAL INFORMATION
TERMINAL COMMUNICATION AREA
configuration of these bits.
When VREADFIELDS is terminated by a function key, VPLUS does not
transmit any data entered on the screen to the user buffer. If the
programmer wishes for data to be transmitted to the data buffer when a
function key is pressed, the AUTOREAD feature should be enabled. The
following COBOL example shows how to enable the autoread feature, and
transfer data to the buffer when the function key
f4 is pressed:
CALL "VREADFIELDS" USING COMAREA.
IF COM-LASTKEY = 4 THEN
ADD 2 TO COM-OPTIONS
CALL "VREADFIELDS" USING COMAREA
SUBTRACT 2 FROM COM-OPTIONS.
Note that two VREADFIELDS calls are necessary to complete the process.
The first VREADFIELDS detects that a function key was pressed, the second
call actually transmits the data to the data buffer. The second call to
VREADFIELDS does not wait for the user to press enter, but rather sends an
"ESC d" to the terminal to simulate an automatic enter. As noted above in
the description of user timeouts, the COBOL SUBTRACT and ADD
statements should always be used when setting bits in the
termoptions
item of the
comarea
.
The mode message is displayed on terminals not automatically configured
by VPLUS. The mode message for VOPENTERM is BLOCK MODE/PAGE IS SET;
for VCLOSETERM it is REMEMBER TO UNLATCH THE BLOCK MODE KEY.
Position 58 -
usertime
If enabled, the value in this word is used asthe number of seconds
to wait for the
ENTER or function key to be pressed. The maximum timeout
value is 3 2,7 6 7 seconds (9.1 hours).
Position 59 -
identifier
VPLUS identifier for the HP terminal model being used, as
shown earlier in Table G-1. in the column labeled ID.