platform independent kbhit()

Hans Georg Krauthaeuser hgk at
Mon Jan 17 12:18:35 CET 2005

Hey all,

this is probably a FAQ, but I didn't found the answer...

I use msvcrt.kbhit() to check for a user keyboard event on windows. But 
now, I would prefer to make the module independent from the platform 
used. I already know that I can use curses (on linux/unix) or Tkinter. 
Also, I  found this C 
source that has a kbhit() and a getch() for linux/unix that I can SWIG 
to python.

Are there other (more simple, pure python, true platform independent) 

Best regards
Hans Georg Krauthaeuser

More information about the Python-list mailing list