Trapping Arrow keys

Hey Guys ,

How do we trap the arrow keys in shell programming.
Or atleast can we read the ascii code of the arrow keys.

I want to read the arrow keys pressed by the user
and accordingly highlight the corresponding menu option.

Is it possible in shell to do so ??

Thanks,
Nagesh.

I don't think that the arrow keys are a part of the Ascii code. Do a man on ascii. It shows a lot but not on arrow keys.

I looked in my .exrc file, which maps keys for vi. I didn't see anything there either. You might check yours just in case.

What OS are you using. Go to their website and check as well.

:frowning: