I've recently bought a Raspberry Pi and I'm completely new to Linux and Python. I'm trying to build a program that will enable to control the frequency of a flashing light with the arrow keys. So I found a related question with a solution here. I've used the sample code given to adapt it to my situation, but when I run the code, an error interrupts the runtime :
_curses.error : cbreak() returned ERR
I can't figure it out why is this happening. How can I fix this?