Listening for a Keypress (Console, not GUI)
Michael Hoffman
cam.ac.uk at mh391.invalid
Thu Jun 23 20:02:48 EDT 2005
brettk at gmail.com wrote:
> So, my question is, using a regular console, is there a way I can get
> python to listen for a specific keystroke? I'm using signal handling
> to deal with ^C, could I also do something like that?
This might help:
http://www.python.org/doc/faq/windows.html#how-do-i-check-for-a-keypress-without-blocking
--
Michael Hoffman
More information about the Python-list
mailing list