You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, like HTTP downloads (see progress_function in libcurl for example), you may not know the size of the download until after you have been in touch with the remote server. But you may still want to create the progress bar to show that things are happening. Once the connection is established, and the Content-Length header has been received, the total for the progress bar can be set, and progress can be logged.
It'd be great if pb offered a way to create a new, "indeterminate" progress bar, and then allow for the total to be set afterwards.
The text was updated successfully, but these errors were encountered:
Just for the record: you CAN change total afterwards (the struct field is directly accessible). Call tick manually afterwards if you don't also change the current value (inc, set, add).
I didn't test it, but I guess you can also change the show_* fields in a similar fashion, e.g. only start showing a timer later.
In some cases, like HTTP downloads (see
progress_function
in libcurl for example), you may not know the size of the download until after you have been in touch with the remote server. But you may still want to create the progress bar to show that things are happening. Once the connection is established, and theContent-Length
header has been received, the total for the progress bar can be set, and progress can be logged.It'd be great if
pb
offered a way to create a new, "indeterminate" progress bar, and then allow for the total to be set afterwards.The text was updated successfully, but these errors were encountered: