Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44067

kbhit/getch python equivalent

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From alb <alessandro.basili@cern.ch>
Newsgroups comp.lang.python
Subject kbhit/getch python equivalent
Date Mon, 22 Apr 2013 15:34:02 +0200
Lines 19
Message-ID <atksiaFtt00U1@mid.individual.net> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Trace individual.net XLJ+5RNS1NNikqxHRloc5g9tIUnqlXp7pQJd22R870MYVjyiXK
Cancel-Lock sha1:xA2bSNSGIqzsJLDorwo/qq9NbQU=
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
X-Enigmail-Version 1.6a1pre
Xref csiph.com comp.lang.python:44067

Show key headers only | View raw


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 portable on Windows. I've
seen the msvcrt module, but it looks like is for Windows only.

Any ideas/suggestions?

Al

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

kbhit/getch python equivalent alb <alessandro.basili@cern.ch> - 2013-04-22 15:34 +0200
  Re: kbhit/getch python equivalent Peter Otten <__peter__@web.de> - 2013-04-22 16:00 +0200
  Re: kbhit/getch python equivalent Grant Edwards <invalid@invalid.invalid> - 2013-04-22 14:10 +0000
  Re: kbhit/getch python equivalent Chris Angelico <rosuav@gmail.com> - 2013-04-23 01:08 +1000
  Re: kbhit/getch python equivalent woooee@gmail.com - 2013-04-22 13:30 -0700
  Re: kbhit/getch python equivalent xDog Walker <thudfoo@gmail.com> - 2013-04-30 07:06 -0700

csiph-web