From 26dfafdb6c7411b0e6f3269cf1aa368bdc53a9ff Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Fri, 18 Dec 2020 21:31:15 +0100 Subject: move carriage return to start, remove spaces keeping it at the end makes the cursor always appear right on the first character which looks kind of ugly --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net.c') diff --git a/src/net.c b/src/net.c index 65880a2..cf0dfdf 100644 --- a/src/net.c +++ b/src/net.c @@ -46,7 +46,7 @@ static int xferinfo(void *p, curl_off_t dltotal, curl_off_t dlnow, UNUSED curl_o if (dltotal != 0) progress = ((float)dlnow / dltotal) * 100; - fprintf(stderr, "Progress: %3" CURL_FORMAT_CURL_OFF_T "%% \r", progress); + fprintf(stderr, "\rProgress: %3" CURL_FORMAT_CURL_OFF_T "%%", progress); return 0; } -- cgit v1.2.3