~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ade12
)
multiprogress.c: Provide the obvious default for `cr'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 01:04:42 +0000
(
01:04
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 01:05:08 +0000
(
01:05
+0000)
multiprogress.c
patch
|
blob
|
blame
|
history
diff --git
a/multiprogress.c
b/multiprogress.c
index
efad38d
..
aa8e890
100644
(file)
--- a/
multiprogress.c
+++ b/
multiprogress.c
@@
-128,7
+128,8
@@
int progress_init(struct progress_state *progress)
#undef SETDIM
- if (!tty->cap.cr || !tty->cap.up || !tty->cap.ce || !tty->cap.cd)
+ if (!tty->cap.cr) tty->cap.cr = "\r";
+ if (!tty->cap.up || !tty->cap.ce || !tty->cap.cd)
{ fclose(tty->fp); tty->fp = 0; return (-1); }
if (!tty->cap.af || !tty->cap.ab || !tty->cap.op) tty->cap.op = 0;
if (!tty->cap.me) tty->cap.mr = tty->cap.md = 0;