Console.Clear() does not clear Console, just skips lines Follow
I think my problem is best describe by showing you an example input and the corresponding output:
The output is the following:
I guess, this is not normal? How can I fix it?
Please sign in to leave a comment.
Possibly a known issue:
Solution is to launch external console when testing.
I did use both, internal and external console, both with the same result. I also updated Riders to the nightly build using the Toolbox, which did not helper either.
I just tried your code and it worked fine for me on Linux. I also tried this:
And while the Rider console doesn't even show any space after Console.Clear(), the external console looks fine.
Note in Linux I don't think it clears the console buffer like in windows, but rather just resets the caret to the upper left corner, maybe your problem has something to do with it not properly resetting to the upper left corner.
Fost 99, if it does reproduce with Use external console in Run Configuration, then it seems to be related to the following known issue: https://github.com/dotnet/runtime/issues/28355