I have a part in my application that generates more output than in a console window fits. I'm satisfied with scrolling through the generated lines but by clearing the console window only the last part disappears. Everything above the height of the console window is still there when I'm scrolling up.
Now, is there a way to wipe the whole console content even the scrollback buffer? Or is the only solution to develop a pager?
Thanks for your replies!
EDIT:
I wrote the following code as POC:
for (int i = 0; i < 100; i++)
{
Console.WriteLine(i);
}
Console.Clear();
Console.ReadKey();
When I'm running that code only the lines 71 to 100 will be deleted.