❔ Is there a way to not let there be user inputs in the terminal?
So it's been like 3 days since I started learning c#, and I wanted to make a small simple game about pokemon battles. Everything works just fine (I haven't finished it yet), but is there a way to not get user inputs in the terminal?
10 Replies
This is the code in Main
not be user input?
to be honest i dont know what i'm saying, im not very good at english
how do i not get the r inside the terminal
You can use the overload for ReadKey https://learn.microsoft.com/en-us/dotnet/api/system.console.readkey?view=net-7.0#system-console-readkey(system-boolean)
Console.ReadKey Method (System)
Obtains the next character or function key pressed by the user.
ok
ReadKey accepts a boolean as an overload
Determines whether to display the pressed key in the console window. true to not display the pressed key; otherwise, false.
ohh
so ReadKey(True) wont display it
ok!! ty
Anytime.
Good luck with your game!
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.