[fpc-pascal]Sleep until key press?

Jonas Maebe jonas at zeus.rug.ac.be
Sun Apr 1 11:31:07 CEST 2001

On Sat, 31 Mar 2001, Stephen Hurd wrote:

> > > Is it possible using the linux version to have a program sleep until a
> > > key is pressed?
> >
> > Have a look at the code for readkey in the Linux Crt unit.
> I'm not seeing anything there... I uses select(), it uses delay(), it
> doesn't go to sleep.  It stays as a runnable process.

But it doesn't use any cpu cycles while waiting. What's the difference
with sleep then?


More information about the fpc-pascal mailing list