Guardian Programmer's Guide

Table Of Contents
Communicating With Terminals
Guardian Programmer’s Guide 421922-014
10 - 18
Communicating in Page Mode
However, in this case you must delay the application program to permit the forms
movement to finish:
DEFINE TWO^SECONDS = 200D;
.
.
CALL WRITEX(TERMNUM,%014,1);
IF <> THEN...
CALL DELAY(TWO^SECONDS);
The application suspends itself for two seconds after sending the form-feed character
to the terminal.
Communicating in Page Mode
Normally, terminals operating in page mode store each character in display memory in
the terminal as it is typed. Display memory is divided into logical pages consisting of
1920 bytes. An entire page of display memory is sent to the computer system at once
as a series of write operations of 256 bytes each. The transfer begins when the user
presses the ENTER (or SEND or XMIT) key. A file transfer terminates when the
computer system receives a page-termination character (typically a carriage return or
ETX character). See Figure 10-4.
For terminals that operate in pseudopolled page mode, the transfer mechanism is
different. Here, the sequence of events is as follows:
1. The user types a block of characters.
2. The user presses the ENTER key, informing the computer system that the terminal
is ready to send a block of information. (The block of information is not sent yet.)
3. The system responds by sending a “trigger” character back to the terminal.
4. The terminal responds to the trigger by sending the complete block of information
to the I/O buffer in the computer system.