diff options
author | Martin Szulecki | 2013-11-14 02:24:42 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-11-14 02:24:42 +0100 |
commit | de37a6b0cf0f19b0dbe0796de04985743b1290e6 (patch) | |
tree | eff3b1cc8cb190b4b05138af2a7151289549b3fa /src/ideviceinstaller.c | |
parent | 5926dfdcb01f865f0bd0de35a33061b8942dfb31 (diff) | |
download | ideviceinstaller-de37a6b0cf0f19b0dbe0796de04985743b1290e6.tar.gz ideviceinstaller-de37a6b0cf0f19b0dbe0796de04985743b1290e6.tar.bz2 |
Use carriage return correctly when displaying status messages from device
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r-- | src/ideviceinstaller.c | 4 |
1 files 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; |