Re: Printing digits in one place

2008-11-24 Thread Lawrence D'Oliveiro
Oltmans wrote: > Bytes Transfered so far X > > and X will increase and cursor should stay at this position. Most terminal emulators are VT100-compatible these days. You could use something like [80D to move back to the beginning of the same line. -- http://mail.python.org/mailman/listinfo/pytho

Re: Printing digits in one place

2008-11-24 Thread Tim Chase
Try repeatedly writing something like "\r \rBytes Transferred So Far %d" \ % count Rather than backing up twice with \r, I'd just suggest "\rBytes Transferred So Far %d " % count or even "\rBytes Transferred So Far %d%s" % (count, ' '*20)

Re: Printing digits in one place

2008-11-24 Thread John Machin
On Nov 25, 10:21 am, Oltmans <[EMAIL PROTECTED]> wrote: > I'm writing a file-transfer program and I'm receiving bytes > transferred in a function. Now I would like to print bytes transfered > in one place e.g. > > Bytes Transfered so far X > > and X will increase and cursor should stay at this posi

Re: Printing digits in one place

2008-11-24 Thread Steve Holden
Oltmans wrote: > I'm writing a file-transfer program and I'm receiving bytes > transferred in a function. Now I would like to print bytes transfered > in one place e.g. > > Bytes Transfered so far X > > and X will increase and cursor should stay at this position. I don't > want to use any 3rd par