Reading a keypress

Jeff Schwab jeff at schwabcenter.com
Mon Feb 25 20:48:21 EST 2008


Dennis Lee Bieber wrote:
> On Mon, 25 Feb 2008 10:35:54 -0800 (PST), wyleu
> <chris.lyon at spritenote.co.uk> declaimed the following in
> comp.lang.python:
> 
>> I'm trying to read a single keypress on Linux but expect to have the
>> programme running on Windows platform as well and find the mention in
>> the FAQ:
> 
> 	UNIX terminal control stuff snipped.
> 
> 	There is NO directly portable way to do low-level I/O with the
> console.

What about curses?

http://docs.python.org/lib/module-curses.html
http://adamv.com/dev/python/curses/



More information about the Python-list mailing list