From de37a6b0cf0f19b0dbe0796de04985743b1290e6 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 14 Nov 2013 02:24:42 +0100 Subject: Use carriage return correctly when displaying status messages from device --- src/ideviceinstaller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index bb28407..2be92d3 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c @@ -107,13 +107,13 @@ static void status_cb(const char *operation, plist_t status) } if (!nerror) { if (last_status && (strcmp(last_status, status_msg))) { - printf("\n"); + printf("\r"); } if (!npercent) { printf("%s - %s\n", operation, status_msg); } else { - printf("%s - %s (%d%%)\r", operation, status_msg, percent); + printf("%s - %s (%d%%)\n", operation, status_msg, percent); } } else { char *err_msg = NULL; -- cgit v1.1-32-gdbae