[fpc-pascal]Sleep until key press?

Stephen Hurd shurd at sk.sympatico.ca
Sat Mar 31 22:41:33 CEST 2001


Is it possible using the linux version to have a program sleep until a key
is pressed?

I've looked for such a thing... even tried:

procedure wait_for_key;
var keystroke:text;

begin
assign(keystroke,'');
selecttext(keystroke);
end;

with no luck, it seem as though the only way to put a process into the sleep
state is
by using the pause procedure... which doesn't return on a keypress.





More information about the fpc-pascal mailing list