Open mixmastamyk opened 1 year ago
https://stackoverflow.com/questions/983354/how-do-i-wait-for-a-pressed-key/34956791?noredirect=1#comment130810896_34956791
>>> from console.utils import wait_key >>> wait_key() 'h'
Looks like we want msvcrt.getwch() and some function key pre-processing:
msvcrt.getwch()
https://docs.python.org/3.8/library/msvcrt.html#msvcrt.getwch
https://stackoverflow.com/questions/983354/how-do-i-wait-for-a-pressed-key/34956791?noredirect=1#comment130810896_34956791
Looks like we want
msvcrt.getwch()
and some function key pre-processing:https://docs.python.org/3.8/library/msvcrt.html#msvcrt.getwch