Guardian Programmer's Guide

Table Of Contents
Communicating With Terminals
Guardian Programmer’s Guide 421922-014
10 - 22
Communicating With Pseudopolled Terminals
Now call SETMODE again, but to change the mode to page mode:
CALL SETMODE(TERM^NUM,CHANGE^MODE,PAGE^MODE);
IF <> THEN ...
.
.
The terminal is now operating in page mode with all four interrupt characters set to
carriage return (the configured default).
Now call SETMODE again, this time to change the interrupt characters for page mode:
CALL SETMODE(TERM^NUM,
SET^INTCHARS,
ETX^EOT,ETX^EOT);
IF <> THEN ...
.
.
The interrupt characters for page mode are now end-of-text, end-of-transmission,
end-of-text, and end-of-transmission.
Now call SETMODE again to change the transfer mode back to conversational:
CALL SETMODE(TERM^NUM,
CHANGE^MODE,
CONV^MODE);
IF <> THEN ...
.
.
The interrupt characters are restored to their initial values: backspace, line cancel, end
of file, and carriage return.
As with conversational-mode terminals, you can force the file system to ignore interrupt
characters by turning on transparent mode using SETMODE function 14. Refer to
Setting Transparent Mode under Setting the Interrupt Characters for Page Mode earlier
in this section.
Communicating With Pseudopolled Terminals
Recall that pseudopolled terminals receive a trigger from the computer system after the
terminal is ready to send the page of data. This trigger may be automatically supplied
by the file system, or it may be done by the application program. Pseudopolled
terminals are always configured during system generation either to receive an
automatic trigger or to have the trigger sent by the application.
The advantage of having the system handle triggering is that the operation is invisible
to the application. The automatic triggering applies only when a READ[X] procedure is
issued to the terminal. It does not apply to WRITEREAD[X], so that the
WRITEREAD[X] procedure can be used for operations such as cursor sensing.
Note. When setting interrupt characters with SETMODE, you must specify all four characters.
If you do not need four interrupt characters, some must be duplicated.