You can use Console.SetBufferSize () to increase the console buffer:
class Program {
static void Main(string[] args) {
Console.SetBufferSize(Console.WindowWidth, 2000);
}
}
- Small addition -
If you are hoping to get the maximum possible buffer:
Console.SetBufferSize(Console.WindowWidth, Int16.MaxValue-1);
You are not allowed anything> = Int16.MaxValue
source
share