There are a lot of examples of how to track keystrokes on C, under Windows, including arrows. Specified getchar() , getch() and library (borlond) conio.h .
I'm interested in sample code in C ++ and under Linux, in the console. So that in the console, when I clicked the arrows, I needed the actions.
Unfortunately, I did not find any examples. :(
ASCII codes know. What function or how to read a character from the keyboard?
It is desirable that without additional pressing Enter after pressing a key. I pressed the letter or the arrow - the right action happened right away.