Categories
How to read the character of the pressed key?
How to read the character of the pressed key? there is a ReadKey method, but it waits for a press
Answer the question
In order to leave comments, you need to log in
char c = Console.ReadKey().KeyChar;
Console.KeyAvailable
There was already such a question .
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question