Closed yczhang-nv closed 1 month ago
The blocker for this is the DynamicProgress
is hard coded to output to std::cout
, which is mentioned in #123 . The workaround in #107 can work with multiple progress bars by re-implementing the print_progress()
function of DynamicProgress
by redirecting the output to the customized ostream
.
Currently I'm trying to use
DynamicProgress
along with my own logger, which outputs logs to the same terminal as the progress bars. I would like to let theDynamicProgress
to always display as the last line of the output, so that it does not cover the log output.I've looked into the method mentioned in #107 and #108, and it works well with one
ProgressBar
. But when I integrated the method withDynamicProgress
, only a small portion ofDynamicProgress
show in the terminal.Below is a code snippet that reproduces the issue:
And the progress bar looks like this (there should be 6 bars in total, but only one of them are displaying):
I'll appreciate any helps to get this to work.