From: "Juergen Pfeifer" <juergen.pfeifer@gmx.net>
Subject: Re: Ada binding for curses
Date: 2000/11/20
Date: 2000-11-20T00:00:00+00:00 [thread overview]
Message-ID: <8vb4h9$im0$00$1@news.t-online.com> (raw)
In-Reply-To: 3A18FFFA.C4E27FD6@CCI.de
> Is there somewhere an Ada binding to curses or ncurses? I have looked at
> AdaPower, PAL and AdaHome but found nothing.
>
> I'm using GNAT 3.12p on a Sun with Solaris 7.
>
Yes. You can get the ncurses sources from ftp://ftp.gnu.org/pub/gnu/ncurses
If you install the archive you'll find a directory Ada95 which contains a
binding. This binding also covers the curses extended libraries libpanel,
libmenu and libform. You don't have to build ncurses from these sources to
use the binding, but a few steps are required to get things right so that
the binding can be used. Just do this:
1. cd into the directory where you have installed ncurses sources
2. type ./configure (maybe you should first try ./configure --help
to figure out whether or not you want to use additional config
options.
3. cd to the Ada95 directory and type "make". This will generate
some of the Ada95 packages wrt. to your hardware and will compile
the binding as well as two sample programs. You may copy the
subdirectory ./Ada95/src to a separate location. It contains the
generated binding and can be used with the proper gnatmake flags
or environment variable settings as your ncurses Ada library:-)
Please note that the ncurses build process assumes that you are using
GNAT. The binding is for ncurses, I never tried it for Solaris curses
although it shouldn't be difficult to adapt it. It shouldn't also be
difficult to use another Ada95 compiler.
If you adapt the binding to Solaris curses or to another Ada95 compiler
it would be nice to get the changes back so that I can integrate them
into the ncurses sources.
Cheers
J�rgen Pfeifer
next prev parent reply other threads:[~2000-11-20 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-20 0:00 Ada binding for curses Vincent Smeets
2000-11-20 0:00 ` Juergen Pfeifer [this message]
2000-11-20 0:00 ` Dale Stanbrough
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox