comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: key strokes intercept
Date: 1999/03/30
Date: 1999-03-30T00:00:00+00:00	[thread overview]
Message-ID: <m3n20vfhsv.fsf@mheaney.ni.net> (raw)
In-Reply-To: 370160f9.569041534@news.dsuper.net

fluffy_puff@dsuper.net writes:

> I'm taking a programming course, using Ada 95, and I've played with VB
> and C++ before.  In Visual Basic I could use some pre-defined
> subprograms to control key strokes in real time (as they happened, as
> opposed to after the <Return> key has been pressed): KeyDown, KeyUp,
> KeyCode, stuff like that.
> 
> How do I do this in Ada ?  

By using Ada.Text_IO.Get_Immediate.


> I just need sort of a starting point where I can look for the info.  I
> have a beginner level book that's pretty good but doesn't touch this
> topic at all.  I couldn't find anything either in the online help I
> have.

See RM95 A.10.7 (11).

You're new to Ada, so what this means is

RM95     - the Ada95 Reference Manual
A        - Annex A, the predefined packages
A.10     - section A.10, which describes Text_IO
A.10.7   - subsection A.10.7, I/O for strings and chars
(11)     - paragraph 11, the description of Get_Immediate, and 
           also the loudest volume on Nigel Tufnel's amplifier
           
There's a reference manual on-line at the ada home page.

<http://www.adahome.com/>

 
> What is "GNAT" ?

The name of a zero-cost, high-quality Ada95 compiler.  GNAT is a member
of the gcc compiler family.

<http://www.gnat.com/>

Follow the Students link from their web page for more info.


> All I can say about the compiler I use is what the "About" box shows:
> ObjectAda for Windows V7.1.105 (special edition)
> Copyright (c) 1997, Aonix.


The student edition from Aonix is another free Ada95 compiler.


You may find it helpful to read Ada95 source code written by an, um,
expert in the language.  I have converted every C++ example in the GoF
design patterns book to Ada95, and have now started documenting
concurrency idioms.

<http://www.acm.org/archives/patterns.html>
<mailto:patterns@acm.org>


You can subscribe to the ACM patterns list by sending the message (body)

subscribe patterns <your full name>


to the ACM mailing-list server.

<mailto:listserv@acm.org>








  parent reply	other threads:[~1999-03-30  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-30  0:00 key strokes intercept fluffy_puff
1999-03-30  0:00 ` David C. Hoos, Sr.
1999-03-31  0:00   ` fluffy_bud
1999-04-01  0:00     ` Aidan Skinner
1999-03-30  0:00 ` Matthew Heaney [this message]
1999-03-30  0:00   ` Magnus Larsson
1999-03-30  0:00     ` Tom Moran
1999-03-30  0:00   ` Marin David Condic
1999-04-01  0:00     ` Aidan Skinner
1999-04-05  0:00       ` Marin David Condic
1999-03-31  0:00   ` fluffy_bud
1999-03-31  0:00 ` Stephen Leake
1999-04-01  0:00   ` fluffy_doo
1999-04-01  0:00     ` Tom Moran
1999-04-02  0:00     ` Jerry van Dijk
replies disabled

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