comp.lang.ada
 help / color / mirror / Atom feed
* read from stdin
@ 2002-07-05 14:28 Philipp Schulte
  2002-07-05 14:35 ` Preben Randhol
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Schulte @ 2002-07-05 14:28 UTC (permalink / raw)


Hello,
I have very little knowledge of Ada but I have to use it for some
programming exercises at my university. I would like to know how I can
accomplish the following: 

I need to have a loop that runs forever and in every cycle it should
check if a key has been pressed and if so some function - depending on
the character - has to be called. If no key has been pressed then it
should just continue running.

The problem is not the loop or the calling of different functions but
the reading of the character. Since I am using GNU/Linux I guess I
just have to read one character from stdin but how can I do this?
Thanks for any hints,
Phil



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

end of thread, other threads:[~2002-07-05 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-05 14:28 read from stdin Philipp Schulte
2002-07-05 14:35 ` Preben Randhol
2002-07-05 14:59   ` Philipp Schulte

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