I\'d like to achieve something like this:
Time consuming operation...OK
Another time consuming operation...
And another one, but it completed, so...OK
Use a carriage return. This sample prints a single line, overwriting what was there before.
Console.WriteLine();
for (int i = 0; i <= 100; i++)
{
System.Threading.Thread.Sleep(10);
Console.Write("\x000DProgress: " + i);
}
This works as long as all your strings are less than 80 columns (or whatever your terminal buffer is set to).