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


Groups > comp.lang.python > #63183

Dos cursor and input management.

From Sean Murphy <mhysnm1964@gmail.com>
Subject Dos cursor and input management.
Date 2014-01-05 20:25 +1100
Newsgroups comp.lang.python
Message-ID <mailman.4939.1388913923.18130.python-list@python.org> (permalink)

Show all headers | View raw


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 

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

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

csiph-web