On 2013-04-22, alb <alessandro.bas...@cern.ch> 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 to be portable on Windows. I've
> seen the msvcrt module, but it looks like is for Windows only.
>
> Any ideas/suggestions?

Signals, ncurses, termios.

-- 
Grant Edwards               grant.b.edwards        Yow! ANN JILLIAN'S HAIR
                                  at               makes LONI ANDERSON'S
                              gmail.com            HAIR look like RICARDO
                                                   MONTALBAN'S HAIR!
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to