comp.lang.ada
 help / color / mirror / Atom feed
From: wheeler@ida.org (David Wheeler)
Subject: Re: keyboard polling in ADA
Date: 10 Mar 1995 22:34:32 GMT
Date: 1995-03-10T22:34:32+00:00	[thread overview]
Message-ID: <3jqk5o$sr@dmsoproto.ida.org> (raw)
In-Reply-To: 3jq23r$40r@galaxy.csc.calpoly.edu

Matthew S Low (mlow@galaxy.csc.calpoly.edu) wrote:

: I'm sorry, in my last posting for keyboard polling in Ada I forgot to
: mention that I am attempting to do this using BSD UNIX. I was also asked
: whether I was trying to "do something" while the program looped waiting for
: a keystroke, and the answer is yes. I'm beginning to look into the areas of
: interrupts and forking tasks in ADA. Any help or suggestions would be
: greatly appreciated. 

There are at least 3 ways I can think of:

1. Use a pragma Convention(...) and call the operating system, presuming
   that the OS provides a way to poll the keyboard.
   This is usually easy.
2. Use Ada 95, which has a way to poll the keyboard in Text_IO.
3. Use Ada tasks to implement this.
   For an example, see the "PDI" example at:
        http://lglwww.epfl.ch/Ada/Examples/PDI/


This sort of stuff depends on the Ada implementation & OS interface.
   


--- David A. Wheeler
Net address: wheeler@ida.org



  reply	other threads:[~1995-03-10 22:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-10 17:26 keyboard polling in ADA Matthew S Low
1995-03-10 22:34 ` David Wheeler [this message]
1995-03-12  3:32   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1995-03-09  2:13 Matthew S Low
1995-03-10  9:31 ` David Arno
replies disabled

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