Asynchronous Terminals and Printer Processes Programming Manual

TERMINAL PROGRAMMING CONSIDERATIONS
Page Mode
Application-Defined Interrupt Characters. You can redefine the
interrupt characters with a SETMODE 9 procedure call. For
ATP6100 subdevices, you can redefine them by including the
INTCHAR attribute in a CMI ALTER SU command.
When changing the interrupt characters with SETMODE or CMI, all
four characters must be specified. Therefore, if fewer than four
are needed, some characters must be duplicated.
When the file system receives an interrupt character that is not
the page termination character, it acts as follows:
• The file transfer is considered complete.
• The interrupt character is transferred into the application
program buffer along with the page image (if any).
• The
read-count
parameter includes the interrupt character.
Application-defined interrupt characters can be mixed with the
page termination character.
Example
This example shows the action of the interrupt characters when
the terminal changes from conversational mode to page mode, then
back to conversational mode. The configured line termination
character is carriage return; the configured page termination
character is also carriage return. The terminal is configured in
conversational mode:
LITERAL CHANGE^MODE = 8, ! for SETMODE
CONV^MODE = 0,
PAGE^MODE = 1,
SET^INTCHARS = 9,
BS^CAN = %004030, ! backspace, line cancel
HT^CR = %004415, ! horizontal tab, carriage return
ETX^EOT = %001404; ! end of text, end of transmission
! open the terminal
CALL OPEN ( HOME^TERM, HOME^TERM^NUM, ... );
! interrupt characters are set to their
! initial conversational mode values: backspace, line cancel,
! end of file, and carriage return
! call SETMODE to change the interrupt characters
CALL SETMODE ( HOME^TERM^NUM, SET^INTCHARS, BS^CAN, HT^CR );
! interrupt characters are set to backspace, line cancel,
November 1987 4-13