From: Philip Mateescu Date: 2002-09-09T09:41:12+09:00 Subject: Equivalent of pascal's keypressed ? Hi, I'm looking for an equivalent to pascal's old keypressed. I'm trying to execute a block till the user presses a key, something like : while (!keypressed) print "." end Is there any such functionality ? I'd also like to know if there is a way to trap the user pressing Ctrl-C and do some stuff before closing ? Thank you very much, philip