“\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
More Related Contents:
- How can I compile and run C/C++ code in a Unix console or Mac terminal?
- How to compile C++ with C++11 support in Mac Terminal
- Order of evaluation of arguments using std::cout
- Can’t compile C program on a Mac after upgrade to Mojave
- How do I output coloured text to a Linux terminal?
- Finding current executable’s path without /proc/self/exe
- Capturing stdout from a system() command optimally [duplicate]
- How to Detect the Number of Physical Processors / Cores on Windows, Mac and Linux
- redirect stdout/stderr to a string
- launch an exe/process with stdin stdout and stderr?
- Determine Process Info Programmatically in Darwin/OSX
- Qt Creator – Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild
- OSX – replace gcc version 4.2.1 with 4.9 installed via Homebrew
- Simulating key press events in Mac OS X
- Formatting output in C++
- How to use Libraries
- Visual Studio Code c++11 extension warning
- Clearing terminal in Linux with C++ code
- Get size of terminal window (rows/columns)
- Conflict between dynamic linking priority in OSX?
- Broken c++ std libraries on macOS High Sierra 10.13
- Relative Paths Not Working in Xcode C++
- gprof reports no time accumulated
- Missing C++ header after updating OSX Command Line Tools 6.3
- Default libraries linked in by gcc?
- Is there a guarantee of stdout auto-flush before exit? How does it work?
- Undefined symbols for architecture x86_64 – Mavericks (Yosemite, El Capitan…)
- Where can I get windows.h for Mac?
- OSX equivalent of ShellExecute?
- How to use dylib in Mac OS X (C++)