Guardian Programmer's Guide

Table Of Contents
Communicating With Terminals
Guardian Programmer’s Guide 421922-014
10 - 2
Accessing a Terminal
You access a terminal the same way as you would any file, by using procedure calls to
the file system. You use the following procedure calls to perform the indicated tasks
with terminals:
AWAITIO[X] Waits for completion of outstanding I/O operations
that are pending on the open terminal.
CANCEL Cancels the oldest outstanding operation on an open
terminal.
CANCELREQ Cancels a specified operation on an open terminal.
CONTROL Controls forms movement and modem connection
and disconnection. Table 10-1 provides a summary.
FILE_GETINFOBYNAME_ Provides the device type and configured record
length of the device specified by name.
FILE_CLOSE_ Stops access to an open terminal.
FILE_GETINFO_ Provides error information and characteristics about
an open terminal.
FILE_OPEN_ Establishes communication with a terminal.
PROCESS_GETINFO_ Returns the name of the home terminal of the
process.
READ[X] Waits for and receives information typed at an open
terminal.
SETMODE Sets and clears terminal-related functions.
Table 10-2 provides a summary.
SETMODENOWAIT Acts the same as SETMODE, but the terminal
functions are applied in a nowait manner.
SETPARAM Establishes BREAK key ownership.
WRITE[X] Sends information to an open terminal.
WRITEREAD[X] Writes to an open terminal, then waits for data to be
read from the same terminal.