From b53795e095edc72cdc7abea07e552fa604411a71 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 6 May 2012 10:09:23 +0200 Subject: [PATCH] fetch_cb: clear until EOL when displaying final stats. --- bin/xbps-bin/fetch_cb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-bin/fetch_cb.c b/bin/xbps-bin/fetch_cb.c index 34a5af6c..a7bcecf0 100644 --- a/bin/xbps-bin/fetch_cb.c +++ b/bin/xbps-bin/fetch_cb.c @@ -166,7 +166,7 @@ fetch_file_progress_cb(const struct xbps_fetch_cb_data *xfpd, void *cbdata) } else if (xfpd->cb_end) { /* end transfer stats */ (void)xbps_humanize_number(size, (int64_t)xfpd->file_dloaded); - fprintf(stderr,"Downloaded %s for %s [avg rate: %s]\n", + fprintf(stderr,"Downloaded %s for %s [avg rate: %s]\033[K\n", size, xfpd->file_name, stat_bps(xfpd, xfer)); } }