From: Warren on 15 Mar 2010 16:59 On the weekend I stumbled across a rather annoying surprise. The culprit was the implementation of ncurses lib. I've only ever [recently] used it in C and always assumed it was a C-only library. I am aware that there is also a ncurses C++ interface as well, but I thought that was isolated. Well, maybe not. It turns out that if I use an Ada main program and link with ncurses, Ada exceptions fail (under Cygwin) with an abort (Access violation IIRC). You don't actually have to invoke any ncurses routines, but simply reference something to cause it to link in. After some experimentation, I discovered that I could overcome the problem by making the main program a C++ program and invoking the usual adainit/adafinal routines. Annoying, but at least it is no longer a "show stopper" that it initially appeared to be. It just occurred to me that there was some sort of Ada binding in ncurses IIRC. Has anyone here had any experience with it? Maybe that would circumvent this main program annoyance among other things. Warren
From: Dirk Heinrichs on 16 Mar 2010 14:03 Warren wrote: > It just occurred to me that there was some sort > of Ada binding in ncurses IIRC. Has anyone here > had any experience with it? Maybe that would > circumvent this main program annoyance among other > things. Most distributions don't seem to package the Ada bindings, although they exist since years. Interestingly, libncurses5-dev in Debian contains the docs for them. Bug? Bye... Dirk
From: Ludovic Brenta on 16 Mar 2010 14:35 Dirk Heinrichs writes: > Warren wrote: > >> It just occurred to me that there was some sort >> of Ada binding in ncurses IIRC. Has anyone here >> had any experience with it? Maybe that would >> circumvent this main program annoyance among other >> things. > > Most distributions don't seem to package the Ada bindings, although they > exist since years. Interestingly, libncurses5-dev in Debian contains the > docs for them. Debian 5.0 "Lenny" has libtexttools-dev, 6.0 "Squeeze" has libtexttools2-dev. They provide a thick binding to curses with additional functionality. -- Ludovic Brenta.
From: Warren on 16 Mar 2010 15:45 Ludovic Brenta expounded in news:87iq8w3yij.fsf(a)ludovic-brenta.org: > Dirk Heinrichs writes: >> Warren wrote: >> >>> It just occurred to me that there was some sort >>> of Ada binding in ncurses IIRC. Has anyone here >>> had any experience with it? Maybe that would >>> circumvent this main program annoyance among other >>> things. >> >> Most distributions don't seem to package the Ada bindings, although >> they exist since years. Interestingly, libncurses5-dev in Debian >> contains the docs for them. > > Debian 5.0 "Lenny" has libtexttools-dev, 6.0 "Squeeze" has > libtexttools2-dev. They provide a thick binding to curses with > additional functionality. The last time I downloaded ncurses to install on HPUX, I recall turning off the build for it. But at the time, I wasn't curious (time was short). Warren
From: Nomen Nescio on 18 Mar 2010 09:45 Warren <ve3wwg(a)gmail.com> wrote: > It just occurred to me that there was some sort > of Ada binding in ncurses IIRC. Has anyone here > had any experience with it? Maybe that would > circumvent this main program annoyance among other > things. I have used it and I was very impressed with it, Juergen did a bang-up job in my opinion. It's not completely faithful to ncurses in that some of the functions are implemented (and work) very differently, but I think, better, than the C version. Definitely worth trying.
|
Next
|
Last
Pages: 1 2 Prev: FSF GNAT on Mac OS X Snow Leopard, does it exist? Next: Dynamic Variant Record Creation |