[Tutor] Linux library for getch() and kbhit()?

Bill Allen wallenpb at gmail.com
Thu Mar 17 05:02:56 CET 2011

I have found that for the Windows build of Python the msvcrt library
provides getch() and kbhit() functions.   Is there a library available for
the Linux Python build that provides the same or similar functions?   I have
found lots of recipes out there to do these, but have not yet found a canned
library.  Being able to do a non-blocking character get or simply check for
a keyboard hit is so useful, so many times, that I wonder about there not
being something like the msvcrt library for Linux.  I am hoping there is and
I have just missed it somewhere.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110316/f2872179/attachment.html>

More information about the Tutor mailing list