From: Jeff Carter <jrcarter@acm.org>
Subject: Re: Reading the keyboard buffer
Date: Sun, 12 Nov 2000 05:42:42 GMT
Date: 2000-11-12T05:42:42+00:00 [thread overview]
Message-ID: <3A0E2DCF.8548027E@acm.org> (raw)
In-Reply-To: iImP5.483364$1h3.12949798@news20.bellglobal.com
Freelancer wrote:
>
> Jeff Carter <jrcarter@acm.org> wrote in message
> news:3A0DF0EB.B72F613D@acm.org...
> > You might want to look at Ada.Text_IO.Get_Immediate.
> >
> > --
> > Jeff Carter
> > "I unclog my nose towards you."
> > Monty Python & the Holy Grail
>
> Thanks.. But from what I have tried with that, it locks until you press a
> key, a lot like a getch(); in C... That's not what I want...
>
> loop
> put_line ("Hell O World");
> get_immediate (char);
> end loop;
>
> Here it would write only once the phrase, and then wait for a key to be
> pressed..
You might want to look at Ada.Text_IO.Get_Immediate.
There are 4 procedures by that name, and one of them should do what you
want.
--
Jeff Carter
"I unclog my nose towards you."
Monty Python & the Holy Grail
next prev parent reply other threads:[~2000-11-12 5:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-12 0:16 Reading the keyboard buffer Freelancer
2000-11-12 1:22 ` Jeff Carter
2000-11-12 1:51 ` Freelancer
2000-11-12 5:42 ` Jeff Carter [this message]
2000-11-12 7:19 ` Freelancer
2000-11-12 0:00 ` tmoran
2000-11-12 0:00 ` Freelancer
2000-11-12 0:00 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox