I'm working on a CLI application that deals with uploading of files, and would like to have a combination of appended and overwritten output. Ideally it would look something like this:
c:\>upload
file1.dat 100%
file2.dat 100%
file3.dat 59%, 36.4k/s
I'd like just the last row to periodically update the percent complete and current speed. I know that I can use SetCursorPosition to write output to any part of the console, but it appears there is no GetCursorPosition and the absolute position of the most recently printed filename will vary. I also wonder how all this will affect redirected output, but handling that correctly isn't critical for this app.
EDIT: Looks like the Console.CursorLeft / Console.CursorTop etc. will give me the current cursor position. I looked right at em too! Oh well. Free accepted answer if anybody wants it.