[fpc-pascal]CRT prevents break?
Michael.VanCanneyt at Wisa.be
Michael.VanCanneyt at Wisa.be
Sat Jan 3 19:06:06 CET 2004
On Sat, 3 Jan 2004, Alan Mead wrote:
>
> --- Michael.VanCanneyt at Wisa.be wrote:
> > > 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.
>
> Ah. Now I see.
>
> It's been a while ... is ReadKey blocking? If so, is there a
> non-blocking function? I recall I used to access the keyring in the
> BIOS directly and I believe that is not proper (or possible).
>
> I would have to insert this check inside a loop doing the real work.
> Well, I guess I could make a non-blocking ReadKey using KeyPressed.
That is why it is there :-)
Michael.
More information about the fpc-pascal
mailing list