[fpc-pascal]Better Alternative to delay()
george at visp.com.au
Wed Oct 15 06:29:44 CEST 2003
I am using the delay function to pause for an amount of time which works
but will not allow the user to stop the program from the console, using
ctrl-C. If I could trap the keystroke, I would be happy.
Excuse the indentation...
while not eof(sin) do
readln (sin, line);
delay(250); //time is measured in milliseconds
What is a better way to write that code snippet. The delay does not need
to be accurate (quarter of a second will not matter)..
More information about the fpc-pascal