Terminal application with non-standard print

Sean DiZazzo half.italian at gmail.com
Mon Jan 25 23:30:58 CET 2010


On Jan 24, 11:27 am, Rémi <babedo... at yahoo.fr> wrote:
> Hello everyone,
>
> I would like to do a Python application that prints data to stdout, but
> not the common way. I do not want the lines to be printed after each
> other, but the old lines to be replaced with the new ones, like wget
> does it for example (when downloading a file you can see the percentage
> increasing on a same line).
>
> I looked into the curses module, but this seems adapted only to do a
> whole application, and the terminal history is not visible anymore when
> the application starts.
>
> Any ideas?
>
> Thanks,
>
> Remi

You might want to take a look at the readline module.

~Sean



More information about the Python-list mailing list