mirror of
https://github.com/mirror/wget.git
synced 2025-02-05 09:10:12 +08:00
Revert "Disable progress bar when wget is backgrounded (trivial patch)"
This reverts commit e624732563
.
This commit is contained in:
parent
b50300a7a2
commit
3ea0beec6f
@ -1194,12 +1194,10 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done)
|
||||
static void
|
||||
display_image (char *buf)
|
||||
{
|
||||
if (tcgetpgrp (fileno (stderr)) == getpid ()) {
|
||||
bool old = log_set_save_context (false);
|
||||
logputs (LOG_PROGRESS, "\r");
|
||||
logputs (LOG_PROGRESS, buf);
|
||||
log_set_save_context (old);
|
||||
}
|
||||
bool old = log_set_save_context (false);
|
||||
logputs (LOG_PROGRESS, "\r");
|
||||
logputs (LOG_PROGRESS, buf);
|
||||
log_set_save_context (old);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user