Added: progress bar disappears when done

This commit is contained in:
Bob Polis 2021-12-13 16:13:21 +01:00
parent 05e79936aa
commit b51d0e3ffc

View File

@ -16,6 +16,8 @@ void show_progress(const sc::term& t) {
t.progress(12, "progress bar", i, 1000);
nanosleep(&tm, nullptr);
}
std::cerr << '\r' << std::string(t.cols(), ' ');
std::cerr << "\rprogress bar done.";
std::cerr << std::endl;
}