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


Groups > comp.lang.python > #63213

Re: Dos cursor and input management.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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; 'excluding': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'windows,': 0.09; 'python': 0.11; 'jan': 0.12; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sudo': 0.16; 'all.': 0.16; 'module': 0.19; 'command': 0.22; 'input': 0.22; '2.x': 0.24; 'keyboard': 0.24; 'sean': 0.24; 'unix/linux': 0.24; 'url:home': 0.24; 'code:': 0.26; 'header:X -Complaints-To:1': 0.27; 'unix': 0.29; 'restricted': 0.31; 'this.': 0.32; 'quite': 0.32; 'text': 0.33; 'screen': 0.34; 'knowledge': 0.35; 'except': 0.35; 'there': 0.35; 'doing': 0.36; 'charset:us-ascii': 0.36; 'received:76': 0.38; 'to:addr:python- list': 0.38; 'visual': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'users': 0.40; 'press': 0.70; 'action.': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Dos cursor and input management.
Date Sun, 05 Jan 2014 14:20:55 -0500
Organization IISS Elusive Unicorn
References <58EDD9C8-2310-46EA-8E77-2C3B049C8BFC@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-76-249-17-115.dsl.klmzmi.sbcglobal.net
X-Newsreader Forte Agent 6.00/32.1186
X-No-Archive YES
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4960.1388949661.18130.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388949661 news.xs4all.nl 2893 [2001:888:2000:d::a6]:59087
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63213

Show key headers only | View raw


On Sun, 5 Jan 2014 20:25:11 +1100, Sean Murphy <mhysnm1964@gmail.com>
declaimed the following:

>Hi all.
>
>I am after a module that manages keyboard input. I am aware of raw_input for python 2.x and input for 3.x. They don't quite achieve what I want.
>
>I want to except a single key without printing it to the screen and then the key would perform an action. Sudo code:

	{accept, pseudo} {except means excluding or outside of, sudo is a
UNIX/Linux command allowing privileged users to access restricted system
commands}

>
>print line of text
>wait for key press

	To my knowledge there is no single OS independent means of doing this.

	Under Windows, you want msvcrt.getch() (and variants; note the M$
Visual C RunTime). On UNIX variants, you might want the curses.getkey().
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

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


Thread

Re: Dos cursor and input management. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-05 14:20 -0500

csiph-web