magmax / python-readchar

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

readkey does not work in PyCharm debugger #51

Closed adlerzei closed 2 years ago

adlerzei commented 4 years ago

Hi,

I love your work but noticed that in PyCharm using the debugger the readkey function never returns anything. I am using Ubuntu 18.04 and PyCharm Community 2019.3.4. readchar is installed via pip in version 2.0.1. Do you know how I can fix it?

Cheerz

lwanger commented 4 years ago

Have you tried checking the box in the PyCharm debugger for terminal emulation (it is in the run configuration (see picture below). That has solved similar issues for me.

Annotation 2020-03-30 110431 )?

adlerzei commented 4 years ago

Ah sorry for the late reply. Yes I already did that, but without success. Do you have any other idea?

lwanger commented 4 years ago

Sorry, I don't except for trying the next option down to run with the Python Console. Unfortunately PyCharm likes to grab input when debugging. I had similar problems with working on my cooked_input package.

adlerzei commented 4 years ago

ok, thank you anyway! Anyone else having an idea?

damc commented 3 years ago

In my case, when I check that option, I don't have the error "termios..." and the program works but it halts on readkey function execution and even when I press key in the console, the program still is halting on readkey execution. Has anyone had that problem and solved it?

spuliaiev-sfdc commented 2 years ago

I have been able to solve it by this fix: https://github.com/magmax/python-readchar/pull/70