command CHOICE in DOS batch replacement/reproduction in python

Posted by LtPinback on Stack Overflow See other posts from Stack Overflow or by LtPinback
Published on 2010-03-26T16:01:38Z Indexed on 2010/03/26 16:03 UTC
Read the original article Hit count: 527

Filed under:
|
|

I want to reproduce the behavior of the command CHOICE in DOS batch but with python.

raw_input requires the user to type whatever then press the ENTER/RETURN key. What I really want is for the user to press a single key and the script to continue from there.

© Stack Overflow or respective owner

Related posts about dos-batch

Related posts about python