On Wed, Jan 29, 2014 at 02:53:12PM +0100, Jasper Lievisse Adriaanse wrote: > Hi, > > At least with ftp -Vm the progressbar was messing up the display as it was > printing the output on the same line and would wrap around creating displays > such as http://pbot.rmdir.de/gOeAYNv30HnQk-4I4xmKZg > Seems like typo from the introduction of the -D flag. > > OK?
There is already the same diff by David in bugs@ > > Index: util.c > =================================================================== > RCS file: /cvs/src/usr.bin/ftp/util.c,v > retrieving revision 1.65 > diff -u -p -r1.65 util.c > --- util.c 23 Jan 2014 00:39:15 -0000 1.65 > +++ util.c 29 Jan 2014 13:52:07 -0000 > @@ -825,7 +825,7 @@ progressmeter(int flag, const char *file > overhead += 3; > } > snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), > - "%-*.*s%s %3d%% ", l, l, title, > + "\r%-*.*s%s %3d%% ", l, l, title, > dotdot, ratio); > overhead += l + 1; > } else > -- Antoine
