Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63213
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: Dos cursor and input management. |
| Date | 2014-01-05 14:20 -0500 |
| Organization | IISS Elusive Unicorn |
| References | <58EDD9C8-2310-46EA-8E77-2C3B049C8BFC@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4960.1388949661.18130.python-list@python.org> (permalink) |
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
Re: Dos cursor and input management. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-05 14:20 -0500
csiph-web