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


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

Re: Dos cursor and input management.

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2014-01-05 17:08 +0000
Last post2014-01-05 17:08 +0000
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. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-05 17:08 +0000

#63202 — Re: Dos cursor and input management.

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2014-01-05 17:08 +0000
SubjectRe: Dos cursor and input management.
Message-ID<mailman.4954.1388941743.18130.python-list@python.org>
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

[toc] | [standalone]


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


csiph-web