From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,36fa1a0bdeea27b1 X-Google-Attributes: gid103376,public From: mfb@mbunix.mitre.org (Michael F Brenner) Subject: Re: Here's a quicky - please help! Date: 1997/05/08 Message-ID: <5ksern$a6t@top.mitre.org>#1/1 X-Deja-AN: 240192849 References: <01bc5a54$49a60120$9a82a6c3@swh2tpv> Organization: The MITRE Corporation, Bedford Mass. > the key. I want to get the key without pressing . Newsgroups: comp.lang.ada Summary: this is a bug Date: 1997-05-08T00:00:00+00:00 List-Id: This is a bug in the Run-Time Library your are using. When a file is connected to the keyboard it should be connected properly using a keyboard interrupt and should already pass you byte codes for all cursor keys. Unfortunately, this bug is endemic to several compilers in several languages, and the vendors tend to justify it, giving their personal opinions that this stuff should fail the way it fails, by design. You can program direct access to the keyboard by calling operating system primitives, like getkey, read_kbd_no_echo, DOS interrupt 21, BIOS interrupt 16#16#, or intercepting the keyboard interrupt yourself. The easiest is to call the operating system primitive using your compiler-specific library. This would not be a problem if there was a single key code list such that on every operating system and hardware, for example, control-up-arrow always returned code 253, etc. Even Unicode (for foreign languages) did not address the arrow keys, shift, control, alt (command), function keys, etc. In my opinion Ada should standardize such a key code list in an optional package which can then start the process of being implemented everywhere.