Guardian Programmer's Guide

Table Of Contents
Communicating With Terminals
Guardian Programmer’s Guide 421922-014
10 - 12
Setting the Interrupt Characters for Conversational
Mode
If the user responds to the READX call by entering only a carriage return, then the
contents of the application buffer remain unchanged, zero is returned in
COUNT^READ, and the file system issues a line feed to the terminal:
CR
initial cursor position
Recall that a read operation also terminates when the specified read-count is
satisfied. Suppose your program issues the following procedure call:
RCOUNT := 10;
CALL READX(TERMNUM,
SBUFFER,
RCOUNT,
COUNT^READ);
Now the user types 10 characters without issuing a carriage return:
Now is the
initial cursor position
“Now is the” is returned in the buffer, and 10 is returned in COUNT^READ. The
terminal sends no carriage return, therefore it receives no line feed.
Setting the Interrupt Characters for Conversational Mode
Four programmable interrupt characters are used to cause special actions when
encountered. The system-defined default values of these characters are as follows:
These default values, as summarized in Figure 10-2, apply to a terminal when first
opened in conversational mode or when the access mode of the terminal is changed
from page mode to conversational mode using SETMODE function 8. The following
paragraphs describe the effects of the backspace, line cancel, and end-of-file
characters. The line-termination character was described earlier in Using the Line-
Termination Character.
Figure 10-2 summarizes the interrupt characters that apply to the conversational mode
of operation.
Backspace ASCII code %10
Line cancel ASCII code %30
End-of-file ASCII code %31
Line termination configured