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.
There is a portable-ish equivalent if you use one of the "curses" libraries, such as ncurses
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With