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,46a82ee84423d8fc X-Google-Attributes: gid103376,public From: kst@thomsoft.com (Keith Thompson) Subject: Re: How do I make HOTKEYS in ADA? Date: 1996/10/10 Message-ID: #1/1 X-Deja-AN: 188469099 sender: news@thomsoft.com (USENET News Admin @flash) x-nntp-posting-host: pulsar references: <3256B8C7.18F9@access.hky.com> organization: Thomson Software Products, San Diego, CA, USA newsgroups: comp.lang.ada originator: kst@pulsar Date: 1996-10-10T00:00:00+00:00 List-Id: In jsa@alexandria (Jon S Anthony) writes: > In article <3256B8C7.18F9@access.hky.com> Randy Kosarik writes: > > I need to know if I can get ADA to scan the keyboard and return the > > ASCII value if a keystroke was made. > Look up Get_Immediate. > > This also cannot stop the execution > > of the program and wait for . > You will need to use tasks or ATC for this. Not necessarily. There's a form of Get_Immediate that returns immediately if no character is available for input. Whether this is implemented "properly" is another question. (I put "properly" in quotes because there's some question about what the language really requires; the expected behavior, though, is pretty clearly what you're looking for.) It's also implementation-defined whether the typed character will be echoed. -- Keith Thompson (The_Other_Keith) kst@thomsoft.com <*> TeleSoft^H^H^H^H^H^H^H^H Alsys^H^H^H^H^H Thomson Software Products 10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2706 FIJAGDWOL