Adapted to new progress bar api

This commit is contained in:
Bob Polis 2021-12-13 10:41:45 +01:00
parent eda32848e8
commit 76c5f65085

View File

@ -13,7 +13,7 @@ void show_progress(const sc::term& t) {
tm.tv_sec = 0; tm.tv_sec = 0;
sc::cursor_hider ch {STDERR_FILENO}; sc::cursor_hider ch {STDERR_FILENO};
for (int i = 0; i < 1000; ++i) { for (int i = 0; i < 1000; ++i) {
t.progress(i, 1000); t.progress(8, "progress", i, 1000);
nanosleep(&tm, nullptr); nanosleep(&tm, nullptr);
} }
std::cerr << std::endl; std::cerr << std::endl;