User`s guide

Function 10 also filters input for certain control characters. If the user types a
CTRL-C as the first character in the line, Function 10 terminates the calling program
by branching to the BIOS warm start entry point. A CTRL-C in any other position
is simply echoed at the console. Function 10 also watches for a CTRL-P keystroke,
and if it finds one at any position in the command line, it toggles the printer echo
switch. Function 10 does not filter CTRL-S and CTRL-Q characters, but accepts
them as normal input. In general, all control characters that Function 10 does not
recognize as editing control characters, it accepts as input characters. Function 10
identifies a control character with a leading caret, ', when it echoes the control
character to the console. Thus, CTRL-C appears as 'C in a Function 10 command
line on the screen.
The final category of console I/O functions includes special functions that modify
the behavior of other console functions. These functions are:
109. Get/Set Console Mode
110. Get/Set Output Delimiter
Function 110 can get or set the current delimiter for Function 9, Print String. The
delimiter is $, when a transient program begins execution. Function 109 gets or sets
a 16-bit system variable called the Console Mode. The following list describes the
bits of the Console Mode variable and their functions:
bit 0 If this bit is set, Function 11 returns true only if a CTRL-C is typed at the
console. Programs that make repeated console status calls to test if execution
should be interrupted, can set this bit to interrupt on CTRL-C only. The
CCP DIR and TYPE built-in commands run in this mode.
bit 1 Setting this bit disables stop and start scroll support for the basic console
110 functions, which comprise the first category of functions described in
this section. When this bit is set, Function 1 reads CTRL-S, CTRL-Q, and
CTRL-P, and Function 1 1 returns true if the user types these characters. Use
this mode in situations where raw console input and edited output is needed.
While in this mode, you can use Function 6 for input and input status, and
Functions 1, 9, and 111 for output without the possibility of the output
functions intercepting input CTRL-S, CTRL-Q, or CTRL-P characters.
bit 2 : Setting this bit disables tab expansion and printer echo support for Functions
2, 9, and 111. Use this mode when non-edited output is required.
2-5
2.2 BDOS Serial Device I/O CP/M 3 Programmer's Guide