Skip to content

ESCAPE

Escape Program Execution

This directive interrupts and suspends program execution, and puts you in Thoroughbred Basic Console Mode.

ESCAPE

This directive produces similar results to pressing the Escape key, however the SETESC directive has no effect on the execution of the ESCAPE directive while the Escape key is trapped by the SETESC directive. Refer to the SETESC directive and the Program Control chapter in Volume I for an explanation of the Escape key operation.

The following effects are produced when this directive is executed in a program:

  1. Returns task control to Thoroughbred Basic Console Mode.
  2. Lists the program line that contains the ESCAPE directive.
  3. Sets the program execution pointer at the program line that follows the ESCAPE directive.

Program execution can be resumed from Thoroughbred Basic Console Mode by typing RUN.

In release levels prior to 8.0, the ESCAPE directive produces an ERR=39 if executed from within a public program. Starting in release level 8.0 the ESCAPE directive interrupts operation just as in a program that is RUN.

If program execution has been interrupted and you are in Thoroughbred Basic Console Mode, type ESCAPE to display the last program line executed. The program environment will not be changed.

ESCOFF, ESCON, and SETESC directives

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF