code changes done

This commit is contained in:
Dawid Pilarski
2020-02-10 20:54:20 +01:00
committed by pilarski
parent 46c9983fab
commit d543453c0c
2 changed files with 92 additions and 75 deletions

View File

@@ -7,13 +7,9 @@ int main() {
// Hide cursor
std::cout << "\e[?25l";
indicators::BlockProgressBar bar;
// Configure the bar
bar.set_bar_width(80);
bar.start_bar_with("[");
bar.end_bar_with("]");
bar.set_foreground_color(indicators::Color::WHITE);
indicators::BlockProgressBar bar{
indicators::option::BarWidth {80}
};
// Update bar state
auto progress = 0.0f;