From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,cded75ec5015dfe7 X-Google-Attributes: gid103376,public From: "Juergen Pfeifer" Subject: Re: Ada binding for curses Date: 2000/11/20 Message-ID: <8vb4h9$im0$00$1@news.t-online.com>#1/1 X-Deja-AN: 695726660 Content-Transfer-Encoding: 8bit References: <3A18FFFA.C4E27FD6@CCI.de> X-Sender: 340028232866-0001@t-dialin.net X-Priority: 3 Content-Type: text/plain; charset=ISO-8859-1 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@t-online.com X-Trace: news.t-online.com 974722410 00 19136 eR4CZIESEatIO 001120 12:13:30 Organization: T-Online X-MSMail-Priority: Normal Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-11-20T00:00:00+00:00 List-Id: > 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