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


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

Dos cursor and input management.

Started bySean Murphy <mhysnm1964@gmail.com>
First post2014-01-05 20:25 +1100
Last post2014-01-06 09:03 +1100
Articles 3 — 2 participants

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


Contents

  Dos cursor and input management. Sean Murphy <mhysnm1964@gmail.com> - 2014-01-05 20:25 +1100
    Re: Dos cursor and input management. Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-05 16:48 +0000
      Re: Dos cursor and input management. Sean Murphy <mhysnm1964@gmail.com> - 2014-01-06 09:03 +1100

#63183 — Dos cursor and input management.

FromSean Murphy <mhysnm1964@gmail.com>
Date2014-01-05 20:25 +1100
SubjectDos cursor and input management.
Message-ID<mailman.4939.1388913923.18130.python-list@python.org>
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 

[toc] | [next] | [standalone]


#63200

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2014-01-05 16:48 +0000
Message-ID<lac2co$hru$2@dont-email.me>
In reply to#63183
On Sun, 05 Jan 2014 20:25:11 +1100, Sean Murphy wrote:

> The module must work under dos for now. Eventually Mac.

Do you mean a windows command line terminal window, or some *nix shell?

As far as I know, dos as an operating system hasn't been around since 
version 6.22 or thereabouts, although I believe ms windows provides a dos 
shell like interface on top of the windows os. I'm not aware that any 
version of python is supported on dos, but I may be wrong, there may be 
some 15 year old hardware running dos somewhere that also has a working 
python install.

I associate dos with machines of the pre-pentium era, although I suspect 
that might not be quite accurate either.

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [next] | [standalone]


#63229

FromSean Murphy <mhysnm1964@gmail.com>
Date2014-01-06 09:03 +1100
Message-ID<mailman.4973.1388959396.18130.python-list@python.org>
In reply to#63200
Dennis,

Loose terminology. The Command terminal within windows which the app will be executed in. Not native DOS.

On 06/01/2014, at 3:48 AM, Denis McMahon <denismfmcmahon@gmail.com> wrote:

> On Sun, 05 Jan 2014 20:25:11 +1100, Sean Murphy wrote:
> 
>> The module must work under dos for now. Eventually Mac.
> 
> Do you mean a windows command line terminal window, or some *nix shell?
> 
> As far as I know, dos as an operating system hasn't been around since 
> version 6.22 or thereabouts, although I believe ms windows provides a dos 
> shell like interface on top of the windows os. I'm not aware that any 
> version of python is supported on dos, but I may be wrong, there may be 
> some 15 year old hardware running dos somewhere that also has a working 
> python install.
> 
> I associate dos with machines of the pre-pentium era, although I suspect 
> that might not be quite accurate either.
> 
> -- 
> Denis McMahon, denismfmcmahon@gmail.com
> -- 
> https://mail.python.org/mailman/listinfo/python-list

[toc] | [prev] | [standalone]


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


csiph-web