From bd586bbb8858aaf0d159bc367a3dd62e48cb7f37 Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Sun, 24 May 2020 23:07:02 -0500 Subject: [PATCH] Updated countdown progress bar sample --- samples/progress_bar_countdown.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/samples/progress_bar_countdown.cpp b/samples/progress_bar_countdown.cpp index 59507d4..138ecb6 100644 --- a/samples/progress_bar_countdown.cpp +++ b/samples/progress_bar_countdown.cpp @@ -5,11 +5,9 @@ using namespace indicators; int main() { - std::cout << "\n\n"; - ProgressBar bar{option::BarWidth{50}, option::ProgressType{ProgressType::decremental}, - option::Start{" ["}, + option::Start{"["}, option::Fill{"■"}, option::Lead{"■"}, option::Remainder{"-"}, @@ -26,10 +24,8 @@ int main() { std::this_thread::sleep_for(std::chrono::milliseconds(100)); } - std::cout << termcolor::bold << termcolor::white - << " Task Failed Successfully\n" << termcolor::reset; - - std::cout << "\n\n"; + std::cout << termcolor::bold << termcolor::white << "Task Failed Successfully\n" + << termcolor::reset; return 0; }