Article View: comp.sys.amiga.tech
Article #13937Reading Arrow Keys From Console Device - How??
From: Chris Minshall
Date: Wed, 28 Feb 1990 08:41
Date: Wed, 28 Feb 1990 08:41
17 lines
1411 bytes
1411 bytes
Does anyone know any easy method for reading the arrow keys from the console
device??? I have opened a window and the console device and when I read
characters from the keyboard I don't get the characters for the arrow keys
that the amiga programming guides (including RKM) tell me I should! I get
"AA" for up arrow and "BB" for down arrow instead of <CSI> A~ for up arrow
and <CSI> B~ for down arrow. I can't figure out how to detect either of
those two or the "AA" and "BB" that I am getting now. I am using if
statements to check the char variable (ch) and when I output it to the window
using a console write character procedure, it gives me the aforementioned
"AA" or "BB"?? Anybody got a clue as to how to detect those arrow keys?? I
would appreciate any and all replys!!!! thanks.
Chris
--
\ / C r o s s r o a d s C o m m u n i c a t i o n s
/\ (602) 941-2005 300|1200 Baud 24 hrs/day
/ \ hplabs!hp-sdd!crash!xroads!aman
Technical Details
Message-ID:
<996@xroads.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!mcdchg!mcdphx!xroads!amanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!mcdchg!mcdphx!xroads!aman From: aman@xroads.UUCP (Chris Minshall) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Reading Arrow Keys From Console Device - How?? Keywords: amiga console rawkey arrow device[A Message-ID: <996@xroads.UUCP> Date: 28 Feb 90 08:41:33 GMT Followup-To: comp.sys.amiga.tech Organization: Crossroads, Phoenix, Az Lines: 17