basdewaard
Newcomer
I'm struggling with something that I thought would have been relatively simple. I'd like the user to enter a character into the console and have the console read it w/o the user having to press <enter>. ie: as soon as the user types a character, have the console read it.
I thought the following would help but it hasn't:
I thought the following would help but it hasn't:
C#:
//read the input...
do {
ch = (char) Console.Read(); //get the char
} while(ch == '\n' || ch == '\r');
Last edited: