Adapted to new cursor_hider api
This commit is contained in:
parent
88811f7c81
commit
7176bfc655
@ -11,7 +11,7 @@ void show_progress(const sc::term& t) {
|
||||
struct timespec tm;
|
||||
tm.tv_nsec = 10000000;
|
||||
tm.tv_sec = 0;
|
||||
sc::cursor_hider ch {STDERR_FILENO};
|
||||
sc::cursor_hider ch {&std::cerr};
|
||||
for (int i = 0; i < 1000; ++i) {
|
||||
t.progress(12, "progress bar", i, 1000);
|
||||
nanosleep(&tm, nullptr);
|
||||
|
Reference in New Issue
Block a user