You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using with .Net framework .Nothing appears except the first line. I changed some of code parts , but console still not showing like the .net core example
The text was updated successfully, but these errors were encountered:
hepter
changed the title
WriteLine now work with .net Framework
WriteLine not work with .net Framework
Aug 25, 2019
The problem is apparently caused in the WriteConsoleLine function. On certain circumstances, the rolling back of the cursor with Console.Write("\r") is not working correctly.
If you replace the current code by the following code, then it should work in the .NET framework, too:
private void WriteConsoleLine(ConsoleOutLine m)
{
var resetString = new string(' ', Console.WindowWidth);
var line = Console.CursorTop;
Console.Write(resetString);
Console.SetCursorPosition(0, line);
var foreground = Console.ForegroundColor;
var background = Console.BackgroundColor;
var written = _writeMessageToConsole(m);
Console.ForegroundColor = foreground;
Console.BackgroundColor = background;
_originalCursorTop += written;
}
I'm using with .Net framework .Nothing appears except the first line. I changed some of code parts , but console still not showing like the .net core example
The text was updated successfully, but these errors were encountered: