MSWIN:getch() UNIX:?

Gerrit Holl gerrit.holl at pobox.com
Wed Nov 10 08:11:43 EST 1999


Francesco wrote:
> There's a module with a getch() function that can run on all platforms?

Write a function what checks on witch OS it is and import the getch() from the
curses module if you're on unix but from another module on dos. For unix, read
the curses howto.

regards,
Gerrit.
-- 
linuxgames.nl.linux.org	 All about games on Linux in Dutch (under construction).
www.nl.linux.org	       The Dutch resource for Dutch Linux documentation.
www.nl.linux.org/discoverb		    Learn foreign words and definitions.
www.nl.linux.org/~gerrit/asperger	 I'm an Asperger, go here for more info.
www.nl.linux.org/~gerrit			    About me and pictures of me.




More information about the Python-list mailing list