Rewinding std::cout to go back to the beginning of a line

“\r” should work for both windows and Mac OS X.

Something like:

std::cout << "will not see this\rwill see this" << std::flush;
std::cout << std::endl; // all done

Leave a Comment