|
-
Capturing the UP Arrow Key
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 and bring up his previously entered command. 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 match the UP ARROW as one case.
Each of my character is received from a buffer and not captured as an input string stream.
Meaning, one char by one char it goes into a char variable read 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!
Examples:
(Can't work)
case '\x1E':
do somthing...
break;
(Compile error)
switch(ch)
{
case '\x1b\x5b\x41'
Do something
}
thanks for reading. I am using Dynamic C compiler, its not those normal ANSI compiler I guess. Its from the microcontroller manufacturer www.rabbit.com
Similar Threads
-
By srinivasc_it in forum .NET
Replies: 7
Last Post: 05-30-2008, 08:33 AM
-
By craver06 in forum VB Classic
Replies: 10
Last Post: 02-06-2008, 12:12 PM
-
By sachinkataria in forum Java
Replies: 0
Last Post: 09-21-2006, 08:19 AM
-
By Runesoul in forum Java
Replies: 4
Last Post: 05-12-2005, 09:20 PM
-
By Jeff Ross in forum VB Classic
Replies: 2
Last Post: 06-13-2001, 08:47 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks