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: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: How do I make HOTKEYS in ADA? Date: 1996/10/10 Message-ID: <1996Oct10.111047.1@eisner>#1/1 X-Deja-AN: 188504386 x-nntp-posting-host: eisner.decus.org references: <3256B8C7.18F9@access.hky.com> x-nntp-posting-user: KILGALLEN x-trace: 844960253/11237 organization: LJK Software newsgroups: comp.lang.ada Date: 1996-10-10T00:00:00+00:00 List-Id: In article , kst@thomsoft.com (Keith Thompson) writes: > 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. I would presume it is also implementation-defined (or environment-defined) as to _when_ any such echo will take place, since some older operating systems echo characters when they are typed rather than when they are read (confusing confident typists enormously, but presumably benefiting those who are unsure about what they keyed). Larry Kilgallen