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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cd2f264826b8f90c,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!m36g2000hse.googlegroups.com!not-for-mail From: mhamel_98@yahoo.com Newsgroups: comp.lang.ada Subject: Interrupting Get_Line Date: 31 May 2007 10:58:06 -0700 Organization: http://groups.google.com Message-ID: <1180634286.341390.214020@m36g2000hse.googlegroups.com> NNTP-Posting-Host: 155.104.37.18 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1180634287 20113 127.0.0.1 (31 May 2007 17:58:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 31 May 2007 17:58:07 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MathPlayer 2.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m36g2000hse.googlegroups.com; posting-host=155.104.37.18; posting-account=RO8m9AwAAAB418WhNxD6U0JmFC9jLoK1 Xref: g2news1.google.com comp.lang.ada:15997 Date: 2007-05-31T10:58:06-07:00 List-Id: 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. My initial work around was to have the cli task have a 'get_immediate' entry to centralize all the command line input in one place, but that does nothing to break the default entry of the task with the get_line in it. Any ideas? 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?