Is there a standard getch() equivalent in C++?
c++
Solution
There is a portable-ish equivalent if you use one of the "curses" libraries, such as ncurses
Problem
I know that getch is not a standard C/C++ function but I tend to like it because it doesn't need you to press enter before returning. So I'd like to know if there is any equivalent in standard C++ that has the same effect (doesn't require you to press enter)? I have read similar questions on this site but none of their answers say whether there is a standard and portable equivalent or not.