a simple keypress sensor
fpm at u.washington.edu
Fri Apr 10 17:01:14 CEST 2009
On Apr 9, 6:55 pm, Soumen banerjee <soume... at gmail.com> wrote:
> I am writing a little program where i have an array the elements of
> which i want to display upon keypresses by the user. The only way on
> linux seems like using getch() from the curses library. I wanted a
> simpler solution than having to use curses for such a simple thing.
> any ideas?
A more "natural" solution - within Linux - would be to use the termios
library functions. Simple, no curses necessary.
More information about the Python-list