Terminal application with non-standard print

Rémi babedoudi at yahoo.fr
Sun Jan 24 15:35:09 EST 2010


My apologies, I did not run the lines properly.
Thanks, that works great now.

If I understand well, \r erases the last line. How about erasing the
previous lines?

For example when writing
sys.stdout.write("1\n2\n")
sys.stdout.write("\r3")
the "1" is still visible.

--
Rémi


On 24 jan, 20:53, Grant Edwards <inva... at invalid.invalid> wrote:
> On 2010-01-24, R?mi <babedo... at yahoo.fr> wrote:
>
> > Thank you for your answer, but that does not work:
>
> Works fine for me.
>
> > the second line is printed after the first one.
>
> Not when I run it.
>
> There's not much more I can say given the level of detail
> you've provided.
>
> --
> Grant




More information about the Python-list mailing list