mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
Added dynamic postfix text sample based on #56
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user