For both GCC / ARM on Linux and Visual Studio on windows, for stdin (or cin), is there any way to find out if a key has been pressed without waiting for <enter> to be pressed - i..e without line buffering.
i.e. anychar()
returns true or false immediately without blocking and if it returns true then getchar() returns the character without blocking.