chiark
/
gitweb
/
~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d79c7c9
)
dvd-sector-copy.c: Force return to start of line on progress output.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 16 Feb 2022 21:20:10 +0000
(21:20 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 16 Feb 2022 23:35:38 +0000
(23:35 +0000)
dvd-sector-copy.c
patch
|
blob
|
blame
|
history
diff --git
a/dvd-sector-copy.c
b/dvd-sector-copy.c
index 31677b85fdd7a9fb548c1a589805e85c543a5123..c6bad44ca543d67fa3a81e2115f45e8623b37470 100644
(file)
--- a/
dvd-sector-copy.c
+++ b/
dvd-sector-copy.c
@@
-285,7
+285,10
@@
static void put_title(dvd_reader_t *dvd, unsigned title)
static int progresslen = 0;
static void clear_progress_internal(void)
- { while (progresslen) { fputs("\b \b", stdout); progresslen--; } }
+{
+ while (progresslen) { fputs("\b \b", stdout); progresslen--; }
+ putchar('\r');
+}
static void clear_progress(void)
{ clear_progress_internal(); fflush(stdout); }
static void vappend_progress(const char *fmt, va_list ap)