I want to use the msvcrt.getch function as in the following example:
print 'Press s or n to continue:\n'
input_char = msvcrt.getch()
if input_char.upper() == 'S':
print 'YES'
But when I use it like this:
n = msvcrt.getch()
print(n)
The output is
b'\xff'
and it doesn't ask user for input.
Is this what is expected from msvcrt.getch() method? If not, how can I fix it?
Thanks!