Updated countdown progress bar sample

This commit is contained in:
Pranav Srinivas Kumar
2020-05-24 23:07:02 -05:00
parent 970490c111
commit bd586bbb88

View File

@@ -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;
} }