Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63202
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Dos cursor and input management. |
| Date | 2014-01-05 17:08 +0000 |
| References | <58EDD9C8-2310-46EA-8E77-2C3B049C8BFC@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4954.1388941743.18130.python-list@python.org> (permalink) |
On 05/01/2014 09:25, Sean Murphy wrote: > 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: > > print line of text > wait for key press > If key press equals delete line. > Delete list element. > else if key press equals edit > display line for interactive edit. > else > move to next line > > > The module must work under dos for now. Eventually Mac. > > Sean > I think you're looking for something like this https://github.com/jmcb/python-pdcurses -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Dos cursor and input management. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-05 17:08 +0000
csiph-web