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
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)
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
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