aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-12-18 21:31:15 +0100
committerJan200101 <sentrycraft123@gmail.com>2020-12-18 21:31:15 +0100
commit26dfafdb6c7411b0e6f3269cf1aa368bdc53a9ff (patch)
tree89099505b29b0ff40b17a025482ec70c390398aa
parentb49b516d23c76080bfd724b655f190020b6bb701 (diff)
downloadpolecat-26dfafdb6c7411b0e6f3269cf1aa368bdc53a9ff.tar.gz
polecat-26dfafdb6c7411b0e6f3269cf1aa368bdc53a9ff.zip
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
-rw-r--r--src/net.c2
1 files changed, 1 insertions, 1 deletions
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;
}