Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I need help with Python equivalent to FORTH "EKEY"
I'm having no luck with finding the equivalent Python function that waits for the user to hit a key to execute a procedure. This would be the functional equivalent of the FORTH languge word KEY, or EKEY.
What KEY, or EKEY does is return onto the stack the ASCII value of the key that was pressed. I could then determine if PAGE UP key was hit, for example, so that my function can scroll the screen.
Unfortunately, raw_input() waits for you to hit ENTER.
Can someone help me?