What is the best way to detect in a C program that arrow key is pressed under Linux or Solaris?
As I know there is no standard C function that can do it. I don't want to use int86 function. I need to do it in a portable way.
Edit: I am asking about console applications.