Is there any way to get the last key press in a console without using Windows messages or the std::cin stream? I’ve heard that there is a function in the standard library. Solutions should preferably be as portable as possible. Thanks for your help in advance.
Share
There’s conio.h but it’s not technically standard. On Linux, my first Google hit suggests termios.h.