--- branches/development/src/utils/ProgressBar.cpp 2012/07/06 22:01:58 1767 +++ branches/development/src/utils/ProgressBar.cpp 2012/10/22 20:42:10 1808 @@ -52,6 +52,7 @@ #else #include #include +#include #endif #ifdef IS_MPI @@ -134,8 +135,13 @@ namespace OpenMD { struct tm * ender = localtime(&end_); char buffer[22]; strftime(buffer, 22, "%a %b %d @ %I:%M %p", ender); - + +#ifdef _MSC_VER + csbi.dwCursorPosition.X = 0; + SetConsoleCursorPosition(hConsole, csbi.dwCursorPosition); +#else cout << '\r'; +#endif cout.width(3); cout << right << int(percent); cout.width(3);