Terminal application with non-standard print
babedoudi at yahoo.fr
Wed Jan 27 12:23:34 CET 2010
On 25 jan, 23:30, Sean DiZazzo <half.ital... at gmail.com> wrote:
> 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.
Thanks everyone for your answers, that helped a lot.
More information about the Python-list