[Tutor] Using the console module.

Tim Golden mail at timgolden.me.uk
Fri Mar 11 09:39:14 CET 2011


On 11/03/2011 08:12, DistortGiygas wrote:
> Python users, what's the best option for someone trying to emulate or
> use the curses module on the Windows platform?
> I've been fooling around with the console module:
> effbot.org/zone/console-handbook.htm
>
> But for the life of me, I can't figure out how to detect a KeyRelease.
> Could anyone share some insight, and maybe an example of how to code it? :(

If your starting point is in fact curses, then you're probably
better off using a curses-alike for Windows. Christopher Gohlke
maintains binaries for one such:

   http://www.lfd.uci.edu/~gohlke/pythonlibs/

(search for "curses")

TJG


More information about the Tutor mailing list