BREAK + Checking Whether Break Was Invoked

Controls circumstances under which DOS checks for the Ctrl-C

or Break key (Ctrl-Break on the IBM PC) while programs are

executing.

VERSION

PC-DOS 2.0+

MS-DOS equivalent: BREAK (2.0+)

TYPE

Internal

SYNTAX

BREAK [ON|OFF]

OPTIONS

ON Sets BREAK to on. BREAK ON allows

interruption of programs while they are

not performing input or output to the

console, the printer, or auxiliary

devices.

OFF Sets BREAK to off (the default).

EXAMPLES

CBREAK ON

sets BREAK to ON. To see the status of the command, issue it with

no argument:

ABREAK

BREAK is on

NOTE

With BREAK set to OFF, DOS checks only when it performs a

screen or keyboard system call or carries out a printer or other

auxiliary device operation. Specifying ON instructs DOS to check

to see whether the Break key combination has been pressed before

it performs any system call. You can specify BREAK = ON in your

configuration file.

------------------------------------------------------------------

[For related topics, press R]

SEE ALSO

ASSIGN Command

CONFIG.SYS File

COMMAND Command

CTTY Command

EXE2BIN Command

JOIN Command

KEYB Command

KEYBxx Command

PROMPT Command

SET Command

SUBST Command