comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@ni.net (Matthew Heaney)
Subject: Re: keypress loop
Date: 1997/10/17
Date: 1997-10-17T00:00:00+00:00	[thread overview]
Message-ID: <mheaney-ya023680001710972025510001@news.ni.net> (raw)
In-Reply-To: 344217D0.797CD306@iinet.net.au


In article <344217D0.797CD306@iinet.net.au>, ojw@iinet.net.au wrote:

>Hi there, just finishing up an ada assignment for 1st year uni, could
>anyone help me with some code along these lines....
>
>loop
>    .......stuff
>exit loop when key press
>end loop

In package Ada.Text_IO there's a subprogram called Get_Immediate.  The loop
would look something like

loop
   <stuff>

   Ada.Text_IO.Get_Immediate (C, Available);
   exit when Available;
end loop;

<interrogate character C>

Was that what you had in mind?

--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271




      reply	other threads:[~1997-10-17  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-13  0:00 keypress loop Oli
1997-10-17  0:00 ` Matthew Heaney [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox