From: bglbv@my-dejanews.com
Subject: Re: How to get a character?
Date: 1999/04/10
Date: 1999-04-10T00:00:00+00:00 [thread overview]
Message-ID: <87k8vkag6f.fsf@bglbv.my-dejanews.com> (raw)
In-Reply-To: m33e28zt36.fsf@mheaney.ni.net
Matthew Heaney <matthew_heaney@acm.org> writes:
> Ben Barth <bebart@dave-world.net> writes:
>
> > I was wondering if there was a way to get a character in Ada from the
> > user such as the getchar() function that can be used in C.
>
> Try Get_Line.
Don't you mean Get_Immediate?
> > I'm trying to add a stop after displaying some information to the
> > screen so the user can press any key to continue with the program.
>
> Yup. Use Get_Line.
Nope. With Get_Line the "any key" had better be labelled "return" or
"enter".
> > I used the Text_IO.Get() function but that didn't seem to work very
> > well.
>
> That function only returns only readable characters, and keeps consuming
> the line terminator until it finds one. In this case, this is not the
> behavior you want.
Correct.
next prev parent reply other threads:[~1999-04-10 0:00 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-10 0:00 How to get a character? Ben Barth
1999-04-10 0:00 ` Matthew Heaney
1999-04-10 0:00 ` bglbv [this message]
1999-04-10 0:00 ` Matthew Heaney
1999-04-12 0:00 ` Fraser Wilson
1999-04-13 0:00 ` Get_Immediate warning, (was: How to get a character?) JS
1999-04-13 0:00 ` Robert Dewar
1999-04-13 0:00 ` bglbv
1999-04-14 0:00 ` Robert Dewar
1999-04-14 0:00 ` bglbv
1999-04-15 0:00 ` Robert Dewar
1999-04-16 0:00 ` Matthew Heaney
1999-04-16 0:00 ` Robert Dewar
1999-04-18 0:00 ` Jean-Pierre Rosen
1999-04-19 0:00 ` Robert A Duff
1999-04-14 0:00 ` Larry Kilgallen
1999-04-14 0:00 ` JS
1999-04-14 0:00 ` Robert Dewar
1999-04-19 0:00 ` Robert A Duff
1999-04-10 0:00 ` How to get a character? David C. Hoos, Sr.
1999-04-12 0:00 ` Jeff Carter
1999-04-12 0:00 ` Robert Dewar
1999-04-12 0:00 ` Larry Kilgallen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox