mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
Updated countdown progress bar sample
This commit is contained in:
@@ -5,11 +5,9 @@ using namespace indicators;
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
std::cout << "\n\n";
|
|
||||||
|
|
||||||
ProgressBar bar{option::BarWidth{50},
|
ProgressBar bar{option::BarWidth{50},
|
||||||
option::ProgressType{ProgressType::decremental},
|
option::ProgressType{ProgressType::decremental},
|
||||||
option::Start{" ["},
|
option::Start{"["},
|
||||||
option::Fill{"■"},
|
option::Fill{"■"},
|
||||||
option::Lead{"■"},
|
option::Lead{"■"},
|
||||||
option::Remainder{"-"},
|
option::Remainder{"-"},
|
||||||
@@ -26,10 +24,8 @@ int main() {
|
|||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << termcolor::bold << termcolor::white
|
std::cout << termcolor::bold << termcolor::white << "Task Failed Successfully\n"
|
||||||
<< " Task Failed Successfully\n" << termcolor::reset;
|
<< termcolor::reset;
|
||||||
|
|
||||||
std::cout << "\n\n";
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user