Adding new line upon progress bar completion.

This commit is contained in:
Patrick Shriwise 2018-11-02 22:39:22 -05:00
parent f52664b29f
commit 6de340e39a
2 changed files with 8 additions and 1 deletions

View file

@ -60,7 +60,8 @@ ProgressBar::set_value(double val) {
// write the bar
std::cout << '\r' << bar << std::flush;
if (val >= 100.0) { std::cout << "\n"; }
// reset the bar value
bar = "";
}