I’m creating a console application where I would like to have two outputs and one input. The reason would be so that one output is always visible.
This is the first output
Text flows upwards just like a regular console application, however...
---------
This is a second output
This is placed at the bottom of the console // also input goes here.
I was thinking of calling it something like this
Console.Out.Writeline("This is the first output");
Console.Out.Writeline("Text flows upwards just like a regular console application, however...");
MyTextWriter.WriteLine("This is a second output");
MyTextWriter.WriteLine("This is placed at the bottom of the console");
But how would I go about splitting the console in two parts? Is it even possible?
If I understand you correctly you can use Console.SetCursorPosition to draw text where you want it. Here’s a crude example that split the console in two areas with text flowing upward when added to them.
I assume you want to fill each area not only with user input? If so you need to set up the drawing of the console in a separate thread and let that thread update the screen when needed.