magmax / python-readchar

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

running in multiprocess #25

Closed MiriUll closed 2 years ago

MiriUll commented 7 years ago

Hey I want to act when the END key is pressed. As I also want to act on a acpi event I need more loops. i wanted to do that with multiprocessing but when I start the key process I keep getting an error message "termios.error: (25, 'Inappropriate ioctl for device')". I already hat a look at the other issue with that error message but that didn`t help me as without the process it works fine.

Thanks for your help :)

suresttexas00 commented 7 years ago

Where are you running the command/program from? That error is usually due to it not being a "real" terminal (such as during Pycharm interactive, etc..). What terminal program and OS are you using?

MiriUll commented 7 years ago

I am running from yakuake on a Fedora 25 system.

suresttexas00 commented 7 years ago

You should try a different terminal program or a tty session and see if the error is in those

MiriUll commented 7 years ago

I tried with the Konsole and still I get the same error :/

suresttexas00 commented 7 years ago

how about tty (use alt-F1 through F6)?