Wednesday 6 April 2016

c# - Set Console output to specific row

I have a console app that I'm working on that outputs realtime event-related information using Console.WriteLine (on a separate thread). The app also allows the user to enter commands via Console.ReadLine(). When output occurs at the same time that the user is entering a command, the output gets intermixed with the input. As a result, I'm looking for a way to keep the bottom row of the console window reserved for input while setting the output to appear on the next to last row (and scroll up from there), thereby avoiding the intermixing.



Any advice on how to get this to work would be most appreciated.



Thanks!

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...