On Thu, Feb 28, 2002 at 10:13:58AM +0100, Bram Moolenaar wrote:
> Gary Johnson wrote:
> > ... The trouble
> > with this is that libtermlib on HP-UX 10.20 doesn't support color
> > terminfo capabilities, so that calls to tgetnum("Co") in this library
> > return -1 even though that capability is in the terminfo database.
> > However, the HP-UX 10.20 curses library does support color terminfo
> > capabilities. ...
> > ... So, for HP-UX users, it would be nice
> > if the vim configure script would also look for tgetent() in the curses
> > library. I don't know what the implications of that might be, so if
> > that's not going to make it into the official 6.1 release, I will post a
> > tip about using --with-tlib=curses to vim.sourceforge.net.
> The current order in which configure checks the libraries was carefully
> tuned to work on most systems. If I put curses before termlib, I'm sure
> it will break for another system.
I thought that might be a problem. That's fine then, I'll just make
sure I always run configure with that option.
> Why do you have a libtermlib on your system that doesn't work? I
> suggest you delete it or move it to a separate directory. I find it
> strange that it doesn't support specific entries of the terminfo.
Good question! That's the termlib that comes with HP-UX 10.20. I guess
someone responsible for developing HP-UX decided that proper termlib
support wasn't all that important. The curses(3X) man page says:
Termcap Compatibility Routines
These routines were included as a conversion aid for programs that
use termcap. Calling parameters are the same as for termcap.
They are emulated using the terminfo(4) database. Their use in
new software is not recommended because they might be deleted in
future HP-UX releases.
Why the support is better in the curses library than in the termlib
library for the same functions from the same vendor is still a mystery
I'm not the system administrator, so I can't really move libtermlib, and
even if I was, I probably wouldn't move it for fear of breaking
something for someone else. Most users probably wouldn't notice that it
doesn't work since the xterm that comes with HP-UX doesn't have color.
Gary Johnson | Agilent Technologies
| Spokane, Washington, USA