MSWIN:getch() UNIX:?

Gerrit Holl gerrit.holl at
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.

--	 All about games on Linux in Dutch (under construction).	       The Dutch resource for Dutch Linux documentation.		    Learn foreign words and definitions.	 I'm an Asperger, go here for more info.			    About me and pictures of me.

More information about the Python-list mailing list