CRT Documentation: Reference

CheckBreak

Controls user termination of an application using the Crt console.

CheckBreak: boolean = True;

Remarks

When CheckBreak is True, the user can terminate the application at any time by:

The user can also press Ctrl+C or Ctrl+Break at any time to halt the application.

All of these features are disabled when CheckBreak is False.

In the Delphi version of Crt, if IsConsole is False, CheckBreak is ignored. This prevents the accidental termination of GUI applications that create consoles during their execution.

See Also

Crt Overview