I am writing a command line tool for Mac OS X that processes a bunch of files. I would like to show the user the current file being processed, but I do not want bazillion files to pollute the terminal window.
Instead, I would like to use one line to output the file path, and then reuse this line for the next file. Is there a character (or some other code) to output to std::cout to accomplish this?
Also, if I wanted to redirect this tool to Windows, would the solution be the same for both platforms?
c ++ terminal stdout macos output-formatting
fbrereto Jun 16 '10 at 23:46 2010-06-16 23:46
source share