console icon indicating copy to clipboard operation
console copied to clipboard

wait_key returns bytes on Windows

Open mixmastamyk opened this issue 3 years ago • 0 comments

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:

https://docs.python.org/3.8/library/msvcrt.html#msvcrt.getwch

mixmastamyk avatar Oct 19 '22 20:10 mixmastamyk