[illumos-Advocates] RTI: 1168 want a libtermcap that does not force libcurses

Garrett D'Amore garrett at damore.org
Thu Jul 14 20:30:26 PDT 2011


approved

  -- Garrett D'Amore

On Jul 14, 2011, at 5:13 PM, Gordon Ross <gordon.w.ross at gmail.com> wrote:

> As discussed on illumos-dev, re. issue 514, etc. this introduces a
> new "filter" library allowing programs and libraries (i.e. readline)
> to express a dependency on termcap functions without forcing a
> choice of which curses library they use, if any.
> 
> Final webrev:
>  http://www.yalms.org/cr/libtermcap/
> 
> outgoing, pbchk, mail_msg (attached)
> 
> The mail_msg has some noise due to:
> https://www.illumos.org/issues/1078
> but I don't see any real problems there.
> 
> Tested using a special build of libreadline with a helper function
> that returns the address of the tgetent function it's linked with.
> I called that with two test programs, one linked with libreadline
> and libncurses, the other linked with libcurses, ad verified that
> the correct tgetent function (i.e. ncurses - the one linked in by
> the test program) was called from inside libreadline.
> 
> Also, Julian Wiesener <jw at vtoc.de> did a full SFW build and
> checked some (possibly) affected programs build there.
> 
> Gordon
> <outgoing.txt>
> <pbchk.txt>
> <mail_msg.txt>
> _______________________________________________
> Advocates mailing list
> Advocates at lists.illumos.org
> http://lists.illumos.org/m/listinfo/advocates



More information about the Advocates mailing list