How do I do user input in Python where I don't want the user to have to press enter in the console? In this case, it's opening a pdf. I want it to say something like
"PDF will automatically open. Press to view in a file browser or q to quit the program"
How can I make it so that the user doesn't have to hit enter, and the input won't show up onscreen? As soon as the user hits q, I want the program to exit.
As far as I know, both input()
and raw_input
require the user to hit enter.
Thanks!
evamvid