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


Groups > comp.lang.python > #44072

Re: kbhit/getch python equivalent

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!news.osn.de!diablo2.news.osn.de!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'windows': 0.15; 'portable': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'module,': 0.24; 'url:dev': 0.24; 'looks': 0.24; "i've": 0.25; 'equivalent': 0.26; 'subject:/': 0.26; 'header:X-Complaints-To:1': 0.27; 'external': 0.29; 'errors': 0.30; "i'm": 0.30; 'breaking': 0.31; 'controlled': 0.31; 'url:python': 0.33; 'but': 0.35; 'url:org': 0.36; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'hardware': 0.61
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Peter Otten <__peter__@web.de>
Subject Re: kbhit/getch python equivalent
Date Mon, 22 Apr 2013 16:00:47 +0200
Organization None
References <atksiaFtt00U1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Gmane-NNTP-Posting-Host p5084b50b.dip0.t-ipconnect.de
User-Agent KNode/4.7.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.916.1366639243.3114.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1366639243 news.xs4all.nl 2278 [2001:888:2000:d::a6]:55763
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:44072

Show key headers only | View raw


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 to be portable on Windows. I've
> seen the msvcrt module, but it looks like is for Windows only.
> 
> Any ideas/suggestions?

Curses?

http://docs.python.org/dev/library/curses.html

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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