Added dynamic postfix text sample based on #56

This commit is contained in:
Pranav Srinivas Kumar
2020-05-25 09:14:23 -05:00
parent 63bb0d8946
commit 7c1d7d6367
5 changed files with 66 additions and 0 deletions

View File

@@ -2516,6 +2516,14 @@ public:
}
os.flush();
// std::cout << "\n"
// << prefix_length << " "
// << start_length << " "
// << bar_width << " "
// << end_length << " "
// << postfix_length << " "
// << " = " << terminal_width << "\n";
if ((type == ProgressType::incremental && progress_ >= max_progress) ||
(type == ProgressType::decremental && progress_ <= min_progress)) {
get_value<details::ProgressBarOption::completed>() = true;