comp.lang.ada
 help / color / mirror / Atom feed
From: "Tarjei T. Jensen" <tarjei@online.no>
Subject: Re: is there a getch() for ada95??
Date: 1996/12/31
Date: 1996-12-31T00:00:00+00:00	[thread overview]
Message-ID: <32C8CD9D.54EE@online.no> (raw)
In-Reply-To: 32C869F4.5F20@pcnet.com


Michael Rizzo wrote:
> 
> Hello.
> Is there a package that does this already.. Something like conio.h
> for C?    Is there a function that can read charater input from the
> keyboard without echo, and without having to press the CR after the
> charater... I'm trying to design some screen controls that will use the
> arrow keys and the function keys...
>    If this package doesn't exist is it possible to include conio.h into
> my
> ada95 progam?

I haven't read the specifications, but you might find it worthwhile to
read up on the procedure get_immediate. If you don't have a paper copy
of the Ada 95 Reference Manual then there is the online version (e.g.
from http://www.adahome.com). Paper copies are also available. If you
are using an Ada 95 compiler under Unix or GNAT with Gcc then you can
always include any getch() or getc() function from C as shown in annex B
of the Ada 95 Reference Manual. Just be sure to include the function and
not the macro version of the function.

If you are not particulary comfortable with Ada yet there is a few books
that you may find useful. These are John Barnes "Programming in Ada 95",
Norman Cohen "Ada as a 2.nd language" (2.nd edition) and Alan Burns &
Andy Wellings "Concurrency in Ada". The latter is probably best seen as
an add-on to either of the two former books.

Greetings,

-- 
// Tarjei T. Jensen 
//    tarjei@online.no || voice +47 51 62 85 58
//   Support you local rescue centre: GET LOST!




  parent reply	other threads:[~1996-12-31  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-30  0:00 is there a getch() for ada95?? Michael Rizzo
1996-12-31  0:00 ` Jerry van Dijk
1996-12-31  0:00 ` Tarjei T. Jensen [this message]
1997-01-12  0:00 ` is there a getch() for ada95?? [LONG] tconiam
replies disabled

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