Guardian Programmer's Guide

Table Of Contents
Communicating With Terminals
Guardian Programmer’s Guide 421922-014
10 - 15
Setting the Interrupt Characters for Conversational
Mode
The following example replaces the configured line-termination character with the line
feed character. The other interrupt characters remain unchanged:
LITERAL INTERRUPT^CHARACTERS = 9;
.
.
PARAM1 ':=' [%10,%30];
PARAM2 ':=' [%31,%12];
CALL SETMODE(TERM^NUM,
INTERRUPT^CHARACTERS,
PARAM1,
PARAM2);
IF <> THEN ...
The user now terminates each line with line feed instead of carriage return. The line
feed character is always transmitted to the application buffer and is counted in the
value returned in the count-read parameter.
Setting Transparent Mode
You can force the file system to ignore interrupt characters and have them simply
passed on to the application as any other character. This is the transparent mode.
You select transparent mode by issuing a SETMODE procedure call with function 14.
The following procedure call turns on transparent mode:
LITERAL TRANSPARENT^MODE = 14,
ON = 0;
.
.
CALL SETMODE(TERMNUM,
TRANSPARENT^MODE,
ON);
IF <> THEN ...
The following call turns off transparent mode:
LITERAL OFF = 1;
.
.
CALL SETMODE(TERMNUM,
TRANSPARENT^MODE,
OFF);
IF <> THEN ...
Once transparent mode is operative, READ and WRITEREAD operations terminate
only when the read-count is satisfied.