comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+ada@pvv.org>
Subject: Re: read from stdin
Date: Fri, 5 Jul 2002 16:35:20 +0200
Date: 2002-07-05T16:35:20+02:00	[thread overview]
Message-ID: <mailman.1025879703.15292.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <slrnaibb95.1rq.pschulte@nepomuk.max.uni-duisburg.de>

Philipp Schulte <pschulte@uni-duisburg.de> wrote on 05/07/2002 (16:32) :
> 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?

Check:

http://www.tc.umn.edu/~puk/tetris.txt

-- 
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
                 �For me, Ada95 puts back the joy in programming.�



  reply	other threads:[~2002-07-05 14:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-05 14:28 read from stdin Philipp Schulte
2002-07-05 14:35 ` Preben Randhol [this message]
2002-07-05 14:59   ` Philipp Schulte
replies disabled

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