[fpc-pascal]CRT prevents break?

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sat Jan 3 12:25:56 CET 2004


On Fri, 2 Jan 2004, Alan Mead wrote:

> 
> --- Michael Van Canneyt <michael.vancanneyt at wisa.be> wrote:
> > 
> > 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.
> 
> Thanks for the information. Can you give me a pointer to "catching
> these keys" myself? 

Just check the result of the next key with readkey. 
It should return #3 for ctrl-c, and #26 for ctrl-Z.


> Also, does this mean that I won't have this
> trouble on Windows?  I want to run it on a Windows XP machine as
> well.

On windows, I don't know how it will behave. Normally the same way, but it's
of course Windows...

Michael.




More information about the fpc-pascal mailing list