On Monday 2013 April 22 06:34, alb wrote:
> Hi everyone,
>
> I'm looking for a kbhit/getch equivalent in python in order to be able
> to stop my inner loop in a controlled way (communication with external
> hardware is involved and breaking it abruptly may cause unwanted errors
> on the protocol).
> I'm looking for a kbhit/getch equivalent in python in order to be able to
> stop my inner loop in a controlled way (communication with external hardware
> is involved and breaking it abruptly may cause unwanted errors
A curses example
import curses
stdscr = curses.initscr()
curses.cbreak()
s
On Mon, Apr 22, 2013 at 11:34 PM, alb wrote:
> I'm looking for a kbhit/getch equivalent in python in order to be able
> to stop my inner loop in a controlled way (communication with external
> hardware is involved and breaking it abruptly may cause unwanted errors
> on the protocol).
Catch Keyboa
On 2013-04-22, alb wrote:
> I'm looking for a kbhit/getch equivalent in python in order to be able
> to stop my inner loop in a controlled way (communication with external
> hardware is involved and breaking it abruptly may cause unwanted errors
> on the protocol).
>
> I'm programming on *nix sys
alb wrote:
> I'm looking for a kbhit/getch equivalent in python in order to be able
> to stop my inner loop in a controlled way (communication with external
> hardware is involved and breaking it abruptly may cause unwanted errors
> on the protocol).
>
> I'm programming on *nix systems, no need t
Hi everyone,
I'm looking for a kbhit/getch equivalent in python in order to be able
to stop my inner loop in a controlled way (communication with external
hardware is involved and breaking it abruptly may cause unwanted errors
on the protocol).
I'm programming on *nix systems, no need to be porta