On Mon, Apr 22, 2013 at 11:34 PM, 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).

Catch KeyboardInterrupt and hit Ctrl-C.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to