β User Input is glitching
So I have this code
When I run the program for the first time and I press Enter when it wants the user input I got this:
Uploaded image
Then I typed
\
and it deleted the H
from Hello
I am doing something wrong?
I use .NET 6.0 because it says it has long term support.11 Replies
.NET 8 also has long term support, fyi
When I added
I got
terminal input can be finicky when typing weird stuff, like control characters etc, but other than that I can't see why it would do what you describe in the opening post
What terminal?
Windows 10
I found it.
Console.TreatControlCAsInput = true;
this was in my code.
somehow.
I removed it and it works.Not sure why that would lead to the described behavior but okay :pepelaff:
Did you press CTRL+C?
same thing
no
I just pressed Enter.
Weird
Is there anything else in the code? This works: https://dotnetfiddle.net/R19fH5
My first thought was that the terminal switched into the "overwrite/overtype mode"
Unknown Userβ’5mo ago
Message Not Public
Sign In & Join Server To View