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,8d3dc560bb69be0f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-18 14:40:10 PST Path: supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!kinglear.mobilixnet.dk!opentransit.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mindspring.net!not-for-mail From: Lao Xiao Hai Newsgroups: comp.lang.ada Subject: Re: Get is the only way ? Date: Sun, 18 Mar 2001 14:33:06 -0800 Organization: AdaWorks Software Engineering Message-ID: <3AB537A2.C739CB41@ix.netcom.com> References: Reply-To: richard@adaworks.com NNTP-Posting-Host: 3f.35.b7.fd Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 18 Mar 2001 22:35:02 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:5830 Date: 2001-03-18T22:35:02+00:00 List-Id: Pascal Obry wrote: > "Snooze" writes: > > > I want have a "break" and only continuous when user press ENTER ( but only > > this .. ) .. but i can't with GET ... > > > > and .. a other question .. > > it's possible .. that the user can enter only 1 press .. exemple : 'Y' > > and don't need press after on the enter .. like GETCH in language C > > You should definitly read an Ada text book :) Just look for Get_Immediate in > Ada.Text_IO. If you design with Ada tasks, you can design so Get_Immediate is checking the buffer, accepting a character, examining the character to see if you want to do something with it, etc. Richard Riehle