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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e759c9142eba3ec1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-18 13:36:31 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <4033DB01.2CE34E32@me.org> From: Me Reply-To: me@me.org X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Keyboard Polling Solution Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 18 Feb 2004 15:37:05 -0600 NNTP-Posting-Host: 199.46.172.133 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 1077140190 199.46.172.133 (Wed, 18 Feb 2004 16:36:30 EST) NNTP-Posting-Date: Wed, 18 Feb 2004 16:36:30 EST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:5657 Date: 2004-02-18T15:37:05-06:00 List-Id: Yes, "Get_Immediate" seems to do the trick. Thanks for the tip. Test Example : with Text_IO; use Text_IO; procedure Test is My_Char : CHARACTER := ' '; Character_Exists : BOOLEAN := FALSE; Loop_Counter : INTEGER := 0; procedure Take_A_Break is begin put_line ("Taking a break from polling..."); end Take_A_Break; begin loop Loop_Counter := Loop_Counter + 1; for X in 1..10000 loop Get_Immediate (Item => My_Char, Available => Character_Exists); if (Character_Exists) then put_line ("Character entered. Done."); return; end if; end loop; Take_A_Break; end loop; end;