platform independent kbhit()

Hans Georg Krauthaeuser hgk at et.uni-magdeburg.de
Mon Jan 17 06:18:35 EST 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 http://my.execpc.com/~geezer/software/kbhit.c 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) 
possibilities?

Best regards
Hans Georg Krauthaeuser
--
www.uni-magdeburg.de/krauthae



More information about the Python-list mailing list