views:

553

answers:

1

I'm writing a command line python programme on linux. I want to ask the user to press a single key, and then it should return that key press. I don't want them to have to press enter, so I can't use the builtin raw_input() method.

+3  A: 

Duplicate of a question posted here

The highest rated answer on that thread was about this Python recipe

I82Much