magmax / python-readchar

Python library to read characters and key strokes
MIT License
143 stars 45 forks source link

readchar produces b'\xff' with no keystrokes. #52

Closed Sylvanite closed 2 years ago

Sylvanite commented 4 years ago

Platform: MS Win10 on i7-2600 CPU python: ver: 3.8.0 readchar ver: 2.0.1

Simple python code as follows:

import readchar

def rctest():
    for n in range(10):
        print('Reading a char: ', end = '')
        c = readchar.readchar()
        print(c)

Executing rctest() immediately produces line - Reading a char: b'\xff' - 10 times w/out any key pressed.

Is there a fix?

Cube707 commented 2 years ago

seems no longer relevant with current version