Guardian Programmer's Guide

Table Of Contents
Communicating With Terminals
Guardian Programmer’s Guide 421922-014
10 - 10
Terminating Terminal Access
MODE,
CONVERSATIONAL);
IF <> THEN ...
To set page mode:
LITERAL PAGE = 1;
.
.
CALL SETMODE(TERMNUM,
MODE,
PAGE);
IF <> THEN ...
Conversational and page modes of operation are described in detail later in this
section.
Terminating Terminal Access
You terminate access to a terminal as you would for any other file, either by stopping
the process or by calling the FILE_CLOSE_ procedure:
ERROR := FILE_CLOSE_(TERMNUM);
IF ERROR <> 0 THEN ...
Communicating in Conversational Mode
When a terminal operates in conversational mode, each character is transferred to the
I/O buffer in the computer system as soon as it is typed. The read operation (or file
transfer) terminates when a line-termination character is entered at the terminal.
Figure 10-1 shows this concept.
Once the controller detects the line-termination character and notifies the I/O process,
the read operation finishes by transferring the received data into the application buffer
through the file-system buffer. The file-system and I/O buffers are released as soon as
the read finishes.
Figure 10-1. Conversational Transfer Mode
VST044.VSD