mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Allow the user to force bar progress.
Published in <sxs8zcxh2x5.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
49b93249b1
commit
4f91014e3f
@ -1,3 +1,8 @@
|
||||
2001-11-23 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* progress.c (bar_set_params): Allow the user to force the use of
|
||||
the bar.
|
||||
|
||||
2001-11-23 Lemble Gregory <gregory.lemble@st.com>
|
||||
|
||||
* gen_sslfunc.c (ssl_init_prng): New function; seed the SSL RNG.
|
||||
|
@ -592,20 +592,25 @@ display_image (char *buf)
|
||||
}
|
||||
|
||||
static void
|
||||
bar_set_params (const char *ignored)
|
||||
bar_set_params (const char *params)
|
||||
{
|
||||
int sw;
|
||||
|
||||
if (opt.lfilename
|
||||
if ((opt.lfilename
|
||||
#ifdef HAVE_ISATTY
|
||||
|| !isatty (fileno (stderr))
|
||||
|| !isatty (fileno (stderr))
|
||||
#else
|
||||
1
|
||||
1
|
||||
#endif
|
||||
)
|
||||
)
|
||||
&& !(params != NULL
|
||||
&& 0 == strcmp (params, "force")))
|
||||
{
|
||||
/* We're not printing to a TTY. Revert to the fallback
|
||||
display. */
|
||||
/* We're not printing to a TTY, so revert to the fallback
|
||||
display. #### We're recursively calling
|
||||
set_progress_implementation here, which is slightly kludgy.
|
||||
It would be nicer if that function could resolve this problem
|
||||
itself. */
|
||||
set_progress_implementation (NULL);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user