How to permit the user to edit a value in text mode (console)

Hello the list :slight_smile:

Inside a little application in text mode (linux console), I want the
user to be able to modify some data.
I used raw_input for new data, but for "editing" existing one,
raw_input does not permit me to do the raw_input with the existing
value for the user to be able to go back inside this value and correct
something.
Is there a possibility to do that (other than to re-program the input
with an existing "answer" already typed) ?

Thank you very much.

Etienne

路路路

--
(\__/)
(='.'=) Ceci est un petit lapin. Copiez/collez-le dans
(")_(") votre signature pour l'aider 脿 dominer le monde

Seems that you have the wrong list. But to give you a direction, you
should look into the curses module. It should be usable on linux and
mac, though you may need to download a port for Windows.

- Josiah

路路路

"Etienne Hilson" <etienne.hilson@gmail.com> wrote:

Hello the list :slight_smile:

Inside a little application in text mode (linux console), I want the
user to be able to modify some data.
I used raw_input for new data, but for "editing" existing one,
raw_input does not permit me to do the raw_input with the existing
value for the user to be able to go back inside this value and correct
something.
Is there a possibility to do that (other than to re-program the input
with an existing "answer" already typed) ?

Oups, sorry, I forgot the wx part of the mailing list name :stuck_out_tongue:
For the moment, I use python under linux.
I don't use wx and graphical stuff yet...
Sorry for any disturbance :slight_smile:

路路路

On 5/28/07, Josiah Carlson <jcarlson@uci.edu> wrote:

"Etienne Hilson" <etienne.hilson@gmail.com> wrote:
> Hello the list :slight_smile:
>
> Inside a little application in text mode (linux console), I want the
> user to be able to modify some data.
> I used raw_input for new data, but for "editing" existing one,
> raw_input does not permit me to do the raw_input with the existing
> value for the user to be able to go back inside this value and correct
> something.
> Is there a possibility to do that (other than to re-program the input
> with an existing "answer" already typed) ?

Seems that you have the wrong list. But to give you a direction, you
should look into the curses module. It should be usable on linux and
mac, though you may need to download a port for Windows.

- Josiah

--
(\__/)
(='.'=) Ceci est un petit lapin. Copiez/collez-le dans
(")_(") votre signature pour l'aider 脿 dominer le monde