comp.lang.ada
 help / color / mirror / Atom feed
* Get_Immediate Hangs
@ 2015-09-30 21:13 Charles H. Sampson
  2015-09-30 21:32 ` Simon Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Charles H. Sampson @ 2015-09-30 21:13 UTC (permalink / raw)


I'm getting a behavior from Get_Immediate that is not what I expect from
the manual. I'm using the form

     Get_Immediate (Item : out Character; Available: out Boolean);

It does not return immediately (with Available = False) if no character
is available. It does not return immediately (with Available = True) if
a character is typed. It only returns (with Available = True) if one or
more characters are typed followed by carriage return. In this case all
of the typed characters are returned, one after the other, including the
carriage return.

I'm using an ancient version of Gnat on an ancient Mac's Unix (Darwin).

Charlie
-- 
Nobody in this country got rich on his own.  You built a factory--good.
But you moved your goods on roads we all paid for.  You hired workers we
all paid to educate. So keep a big hunk of the money from your factory.
But take a hunk and pay it forward.  Elizabeth Warren (paraphrased)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-01  2:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-30 21:13 Get_Immediate Hangs Charles H. Sampson
2015-09-30 21:32 ` Simon Wright
2015-09-30 22:42   ` Charles H. Sampson
2015-09-30 21:49 ` Jeffrey R. Carter
2015-10-01  2:44 ` Matt Borchers

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