By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,101 Members | 2,402 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,101 IT Pros & Developers. It's quick & easy.

unbuffered input

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
> 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.