Sep-12-2018, 01:18 PM
(This post was last modified: Sep-12-2018, 01:18 PM by gruntfutuk.)
That's a pretty old library, and doesn't work on macOS (just tried it). You might want to look at a more recent alternative (which I think might be based on the ActiveState recipe you shared).
readchar 2.0.1 on PyPi
I tried it in the shell, and it worked fine with this code:
readchar 2.0.1 on PyPi
I tried it in the shell, and it worked fine with this code:
import readchar while True: key = readchar.readkey() if key == " ": breakObviously, I could print whatever character was read (assuming it was printable character).
I am trying to help you, really, even if it doesn't always seem that way