Adapted to new progress bar api
This commit is contained in:
parent
eda32848e8
commit
76c5f65085
@ -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;
|
||||||
|
Reference in New Issue
Block a user