~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d5797b
)
multiprogress.c: Set the terminal stream to be fully buffered.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 25 Mar 2022 01:32:37 +0000
(
01:32
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 25 Mar 2022 18:51:48 +0000
(18:51 +0000)
The `free_render_state' function correctly forces output when we're done.
multiprogress.c
patch
|
blob
|
blame
|
history
diff --git
a/multiprogress.c
b/multiprogress.c
index
450f7f1
..
0088932
100644
(file)
--- a/
multiprogress.c
+++ b/
multiprogress.c
@@
-136,6
+136,7
@@
int progress_init(struct progress_state *progress)
{ 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;
+ setvbuf(tty->fp, 0, _IOFBF, BUFSIZ);
return (0);
}