[llvm] r187874 - Add support for linking against a curses library when available and

Joerg Sonnenberger joerg at britannica.bec.de
Thu Aug 8 04:36:34 PDT 2013


On Wed, Aug 07, 2013 at 01:00:16PM -0700, Chandler Carruth wrote:
> On Wed, Aug 7, 2013 at 12:23 PM, Joerg Sonnenberger <joerg at britannica.bec.de
> > wrote:
> 
> > On Wed, Aug 07, 2013 at 08:47:36AM -0000, Chandler Carruth wrote:
> > > Log:
> > > Add support for linking against a curses library when available and
> > > using it to detect whether or not a terminal supports colors.
> >
> > I think it would preferable to use terminfo or termcap directly for
> > this. The former exists at least on every system with ncurses and NetBSD
> > 6+, the latter on another range of systems. All curses implementations I
> > am aware of pull one of those two libraries in, but add more junk on
> > top. I don't see any need for supporting termcap for optional colour
> > support, so just going with terminfo sounds fine.
> 
> 
> What specific library are you suggesting?

Terminfo.

> I'm unable to find a library/API for terminfo directly, and instead
> find just the specs for its database format.

http://netbsd.gw.com/cgi-bin/man-cgi?terminfo++NetBSD-current

should apply to both ncurses and NetBSD's terminfo implementation.

Joerg



More information about the llvm-commits mailing list