471,353 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,353 software developers and data experts.

unbuffered input

Hi,
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?

thank you for you time,
Michael Young

Jul 18 '05 #1
1 1418
> 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
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Max Rabkin | last post: by
5 posts views Thread by Rich | last post: by
7 posts views Thread by Markus Mayer | last post: by
1 post views Thread by Yang Zhang | last post: by
4 posts views Thread by Jules | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.