character trapping

What is the ascii value of up,down,right and left arrow keys?
How to trap these keys using C language.?
What data type could be used for trapping these keys in C?.
stalinAsked:
Who is Participating?
 
JYoungmanConnect With a Mentor Commented:
1. For an xterm,
ESC [ A
ESC [ B
ESC [ C
ESC [ D
respectively.

2. Use the ncurses library (or SLang, newt or TV).

3. int.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.