I’m trying to write a string of text that is the width of the buffer (and window) using Console.Write(). The problem is that when the string reaches the buffer width, it’ll make a new line, which is a problem since I have a set buffer and window height as well, so it cuts off the top line. I need there to be text fit in the entire line, so I can’t just cut it short.


You will need to access the buffer directly, as Console.Write treats the buffer as a text stream. This involves calling Windows API functions (P/Invoke).
https://stackoverflow.com/questions/2754518/how-can-i-write-fast-colored-output-to-console
C# devs
null reference exceptions

source