Re: How to read arrow key input in the ANSI way?



Paramesh wrote:
Hello friends,

I want to write a program where i want to use the arrow keys.

I could not find how to read the arrow key input.

The only way i know is the non-ansi way by using getch function. or by
using the conio.h header file.


That is because there isn't a way to read specific keypresses. Check: http://www.eskimo.com/~scs/C-faq/s19.html

Is there any other better method?

Perhaps not better, but there are other ways of getting arrow key-codes. (But they are not portable)


Please give me a sample code.

Gimme gimme never get. Google it. There are a million examples out there.


Thank you, Paramesh.


Anytime... .