Guardian Programmer's Guide

Table Of Contents
Communicating With Terminals
Guardian Programmer’s Guide 421922-014
10 - 14
Setting the Interrupt Characters for Conversational
Mode
Using the End-of-File Character
The end-of-file character permits a user to signal an application process that no more
data will be entered. When the file system receives the end-of-file character, the
current file operation is considered to be complete. No data is transferred into the
application program’s buffer area, the count-read parameter returns 0, and the
condition code indicator is set to CCG. The system writes an “EOF!CRLF” character
sequence to the terminal.
Programming the Interrupt Characters
You can change any of the interrupt characters for special applications using
SETMODE function 9 as shown in Figure 10-3. The backspace and line-cancel
characters are replaced by the upper and lower bytes, respectively, of parameter 1,
while the end-of-file and line-termination characters are replaced by the upper and
lower bytes, respectively, of parameter 2.
Receipt of any interrupt character other than the system-defined interrupt characters
always has the same effect, regardless of which interrupt character it replaces:
The system considers the operation to be complete.
The application program receives the interrupt character in the buffer along with
the line image (if any).
The count-read parameter includes the interrupt character.
Figure 10-3. Changing Conversational-Mode Interrupt Characters
VST122.VSD
VST122.VSD