unbuffered input
Diez B. Roggisch
deets_noospaam at web.de
Thu Feb 5 17:21:46 EST 2004
> I have a numbered menu that I want users to from. They choose the
> number corresponding to the action they wish to take.
> Right now I'm using input() to get the user's responce. They press the
> number then press ENTER. I would like to skip the
> part where they press ENTER, so that the user presses the number and
> then they get the action they chose without having
> to press ENTER. Is there a way to do this and how?
Look into the curses module and its raw-mode.
Regards,
Diez B. Roggisch
More information about the Python-list
mailing list