]> sjero.net Git - wget/commitdiff
[svn] Simplify display_image.
authorhniksic <devnull@localhost>
Fri, 30 Nov 2001 08:02:33 +0000 (00:02 -0800)
committerhniksic <devnull@localhost>
Fri, 30 Nov 2001 08:02:33 +0000 (00:02 -0800)
src/ChangeLog
src/progress.c

index 5f4b2fd32e60527d71def9efb4585c7c430e19f1..15c0db948f25eb905677c235f64dcee0b8ef9d90 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-30  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * progress.c (display_image): Just print one CR to reset the
+       cursor position.
+
 2001-11-30  Christian Fraenkel  <c.fraenkel@gmx.net>
 
        * init.c: New command `ssl_egd_sock'.
index 18732c77d794d6c7ebf23465cbca717ab31a4c6d..d57fbc4e4af0ce5eadd2efd2c20b3bfa48015852 100644 (file)
@@ -644,10 +644,7 @@ create_image (struct bar_progress *bp, long dltime)
 static void
 display_image (char *buf)
 {
-  char *del_buf = alloca (screen_width + 1);
-  memset (del_buf, '\b', screen_width);
-  del_buf[screen_width] = '\0';
-  logputs (LOG_VERBOSE, del_buf);
+  logputs (LOG_VERBOSE, "\r");
   logputs (LOG_VERBOSE, buf);
 }