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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cd2f264826b8f90c X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!fdn.fr!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <465F1380.8010003@obry.net> Date: Thu, 31 May 2007 20:27:12 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: mhamel_98@yahoo.com Subject: Re: Interrupting Get_Line References: <1180634286.341390.214020@m36g2000hse.googlegroups.com> In-Reply-To: <1180634286.341390.214020@m36g2000hse.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 31 May 2007 20:27:21 CEST NNTP-Posting-Host: 82.124.248.33 X-Trace: 1180636041 news.orange.fr 25927 82.124.248.33:1587 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:15999 Date: 2007-05-31T20:27:21+02:00 List-Id: mhamel_98@yahoo.com a �crit : > I have a program with a task that reads off the command line via > get_line. Now some other parts/tasks of the program occasionally need > to read off the line as well, usually a (y/n) type question to the > user that I use get_immediate for. Thing is, the get_line in the cli > task 'intercepts' the response to the get_immediate. I think you have to redesign this stuff. There is a single standard input and this resource can't be shared by multiple threads. There is no way to change this fact, it can't be shared and you need to work around that. > Another workable solution would be to pop up a new console as needed > that goes away as soon as it gets a response, how would I do this? This is OS dependent, it is not related to Ada. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595