Guardian Programming Reference Summary for C

SETMODE Operations
Guardian Programming Reference Summary for C522630-001
11-13
SETMODEs 40-49 are reserved for the Exchange products. Refer to the Exchange
reference manuals for details.
38 Terminal: Set special line-termination mode and character
param1
= 0 sets special line-termination mode. param2 is the new line-termination
character. The line-termination character is not counted in the length of a
read. No system-supplied carriage return or line feed is issued at the end of
a read (see note on cursor movement below).
= 1 sets special line-termination mode. param2 is the new line-termination
interrupt character. The line-termination character is counted in the length
of a read. No system-supplied carriage return or line feed is issued at the
end of a read (see note on cursor movement below).
= 2 resets special line-termination mode. The line-termination interrupt
character is restored to its configured value. param2 must be present but is
not used.
param2 = the new line-termination interrupt character (passed in bits 8-15) if
param1 = 0 or 1.
last-params If present, returns the current mode in last-params [0] and
the current line-termination interrupt character in last-params
[1].
Note:
Although the cursor typically will not move when 0 or 1 is specified for param1,
these options do not turn off ECHO. Therefore, if the termination character is
one which would normally cause cursor movement (such as a LF or CR) and
ECHO is enabled, cursor movement will occur.