diff --git a/src/ChangeLog b/src/ChangeLog index 5f4b2fd3..15c0db94 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-11-30 Hrvoje Niksic + + * progress.c (display_image): Just print one CR to reset the + cursor position. + 2001-11-30 Christian Fraenkel * init.c: New command `ssl_egd_sock'. diff --git a/src/progress.c b/src/progress.c index 18732c77..d57fbc4e 100644 --- a/src/progress.c +++ b/src/progress.c @@ -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); }