I am running Turbo Pascal 3.01A on CP / M 2.2. Suppose my Pascal program, which I run using the R menu option in Turbo Pascal, has an error and goes into an endless loop. Is there a special control character that will interrupt my program and return to the Turbo Pascal menu?
The {U +} directive will cause the compiled code to check after each statement whether a key has been pressed. If so, the keystroke will be checked for ^ C; if not ^ C, the keystroke will be discarded. Although it allows the program to be interrupted usefully, it slows down the work and also quite annoyingly kills the ability "forward". Unfortunately, CP / M does not provide any keyboard interrupts (although some CP / M implementations may provide one), so there is no better alternative. It would be nice if Turbo Pascal had the ability to implement its own keyboard buffering, but I don't know anything.
Turbo Pascal 3 ( Program) {$U+}. CTRL + C. , . , .
Program
{$U+}
Turbo Pascal 3 . "U - " .
, Turbo Pascal , - . , , , . , , , .