Re: kbhit/getch python equivalent

2013-04-30 Thread xDog Walker
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).

Re: kbhit/getch python equivalent

2013-04-22 Thread woooee
> 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

Re: kbhit/getch python equivalent

2013-04-22 Thread Chris Angelico
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

Re: kbhit/getch python equivalent

2013-04-22 Thread Grant Edwards
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

Re: kbhit/getch python equivalent

2013-04-22 Thread Peter Otten
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

kbhit/getch python equivalent

2013-04-22 Thread alb
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