basdewaard
Member
Im struggling with something that I thought would have been relatively simple. Id 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 hasnt:
I thought the following would help but it hasnt:
C#:
//read the input...
do {
ch = (char) Console.Read(); //get the char
} while(ch == \n || ch == \r);
Last edited by a moderator: