I'd like to receive a keyboard input, but getch()
doesn't return what I want. It always returns ÿ
even if I don't press anything. Do you know why? My Script:
from msvcrt import getch
while 1:
print( chr( getch()[0] ) )
I'd like to receive a keyboard input, but getch()
doesn't return what I want. It always returns ÿ
even if I don't press anything. Do you know why? My Script:
from msvcrt import getch
while 1:
print( chr( getch()[0] ) )