|Powered by QM on a Rpi server|
KnowledgeBase 00118: Break Key Options
This article was originally published as a Tip of the Week.
When the user presses the break key, usually Ctrl-C, QM offers far more than just quit or continue.
The prompt displayed when the break key is pressed allows the following responses:
Changing the Break Key
The break key is bound to Ctrl-C by default. This can be changed by use of the PTERM command, for example
PTERM BREAK ^X PTERM BREAK 24Both of the above examples set the break key to be Ctrl-X (character 24). The same effect can be achieved using the QMBasic PTERM() function
X = PTERM(PT$BRKCH, 24)In all cases, the break key must be in the range char(1) to char(31).
Enabling and Disabling the Break Key
The break key is disabled until after execution of the optional LOGIN command script at which point it is enabled. If an application is started from the LOGIN script, the break key will continue to be disabled unless explicitly enabled using
PTERM BREAK ONor the QMBasic PTERM() function
X = PTERM(PT$BREAK, @TRUE)
Conversely, the break key can be disabled at any time with
PTERM BREAK OFFor the QMBasic PTERM() function
X = PTERM(PT$BREAK, @FALSE)
00032: Process Dump Files