So I was wondering if there is a way to bypass having to hit enter after scanning or using getch to get a character. I have been looking around online and all the code I found is not standard C which is what i wish to use.
So I was wondering if there is a way to bypass having to hit enter after scanning or using getch to get a character. I have been looking around online and all the code I found is not standard C which is what i wish to use.
Cprogramming.com FAQ > How can I get input without having the user hit [Enter]?
There is no standard way, as mentioned in that FAQ.
getch isn't a standard function. If you're on Windows, you can use getch from conio.h, or if you're on Unix, you can use getch from the ncurses library.
Originally Posted by The Jargon File