[fpc-pascal]CRT prevents break?
Michael Van Canneyt
michael.vancanneyt at wisa.be
Fri Jan 2 13:12:13 CET 2004
On Thu, 1 Jan 2004, Alan Mead wrote:
> I'm using "Free Pascal Compiler version 1.0.10 [2003/06/26] for i386"
> on Linux 2.4.7-10 and when I use the CRT unit, I cannot break a
> program with Control-C. Even Control-Z doesn't stop the program's
> execution. I have to kill it. I've attached an example program
> (compile with "-dSCREWED_UP" to see the behavior I'm talking about).
>
>
> Is this a known issue? Is there any work-around? Sorry if this is
> in the manual, I don't see anything about this in the CRT
> documentation.
This is a 'known issue'. It's normal behaviour. AFAIK, CTRL-C and CTRL-Z
are normally handled by the shell. The CRT unit takes over the terminal,
preventing the shell from catching these keys. There is no work-around
except catching these keys yourself.
Michael.
More information about the fpc-pascal
mailing list