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


Groups > comp.lang.python > #63213 > unrolled thread

Re: Dos cursor and input management.

Started byDennis Lee Bieber <wlfraed@ix.netcom.com>
First post2014-01-05 14:20 -0500
Last post2014-01-05 14:20 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#63213 — Re: Dos cursor and input management.

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2014-01-05 14:20 -0500
SubjectRe: Dos cursor and input management.
Message-ID<mailman.4960.1388949661.18130.python-list@python.org>
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/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web