Dear all,
Background: Rabbit Microcontroller.
Accessing the board via Telnet. TCP/IP
Uses VT100 Emulation Telnet.
I had been thinking how do I check whether a user had keyed in an UP ARROW. I tried to do a HEX key capture and they returned me 3 HEX numbers.
I am using a Switch Case, I can't combine these 3 HEX codes together and view it as one case.
Each of my character is received from a buffer and not captured as a input string stream.
Meaning, one char by one char it goes into a char variable from the buffer.
HEX KEY for UP arrow is 1b 5b 41
I checked up the net and they gave me 1E as UP ARROW but funny thing is it can't work!
Example:
case '\x1E':
do somthing...
break;