getwch() directly returns a string, so we could remove the manual decoding done here:
|
# manual byte decoding because some bytes in windows are not utf-8 encodable. |
|
return chr(int.from_bytes(msvcrt.getch(), "big")) |
Does a swicht pose problems? Can we overcome theme?
Are there donwsides?