Added use of new iomanip to clear line
This commit is contained in:
parent
b51d0e3ffc
commit
ee0ee06108
@ -16,8 +16,8 @@ void show_progress(const sc::term& t) {
|
|||||||
t.progress(12, "progress bar", i, 1000);
|
t.progress(12, "progress bar", i, 1000);
|
||||||
nanosleep(&tm, nullptr);
|
nanosleep(&tm, nullptr);
|
||||||
}
|
}
|
||||||
std::cerr << '\r' << std::string(t.cols(), ' ');
|
std::cerr << sc::io::clear_line(t);
|
||||||
std::cerr << "\rprogress bar done.";
|
std::cerr << "progress bar done.";
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user