1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Revert "Disable progress bar when wget is backgrounded (trivial patch)"

This reverts commit e624732563.
This commit is contained in:
Darshit Shah 2015-09-21 19:41:38 +05:30
parent b50300a7a2
commit 3ea0beec6f

View File

@ -1194,13 +1194,11 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done)
static void static void
display_image (char *buf) display_image (char *buf)
{ {
if (tcgetpgrp (fileno (stderr)) == getpid ()) {
bool old = log_set_save_context (false); bool old = log_set_save_context (false);
logputs (LOG_PROGRESS, "\r"); logputs (LOG_PROGRESS, "\r");
logputs (LOG_PROGRESS, buf); logputs (LOG_PROGRESS, buf);
log_set_save_context (old); log_set_save_context (old);
} }
}
static void static void
bar_set_params (char *params) bar_set_params (char *params)