Wait for a keypress before continuing?

John Doe jdoe at usenetlove.invalid
Tue Aug 16 20:48:24 CEST 2011


> def wait_for_keystroke():
>   char=0
>   while not char==0x1B:
>     char=msvcrt.getch()

I tried using

while not char==chr(27):



More information about the Python-list mailing list