[llvm] r187874 - Add support for linking against a curses library when available and
james at jamesmolloy.co.uk
Wed Aug 7 14:09:33 PDT 2013
I agree that all unix systems have curses or terminfo. However, it
complicates distribution. Now, anyone who wants to package up LLVM or Clang
for distribution has to compile and link shared against a version of
curses, and the binary compatibility story becomes more complicated. Which
version of curses do we use? is there a version that works on a wide range
of linux distributions? etc etc.
Previous dependencies such as libxml, zlib have had a graceful fallback. I
don't see why this should be any different. Why kill the functionality of
autodetecting without linking to an external library if it's cheap to keep?
On 7 August 2013 21:54, Richard <legalize at xmission.com> wrote:
> In article <CAHnXoamHr48T=
> q4Zs-pMuvNG4MUnuMzkDRiUSNzJAAHanHRq4w at mail.gmail.com>,
> Sean Silva <silvas at purdue.edu> writes:
> > On Wed, Aug 7, 2013 at 12:19 PM, Richard <legalize at xmission.com> wrote:
> > > (Background: I'm the creator of the terminals wiki, linked in my
> > > signature, and I probably know way too much about terminals, escape
> > > codes, curses, termcap, etc., than any sane person should know :-).
> > > Amazingly enough, I have quite a bit of company in that box of insane
> > > persons.)
> > Do you have any idea if it would be too much code to detect the presence
> > color terminals ourselves? (e.g. just hardcoding the small(?) amount of
> > specific functionality we need to detect color support and nothing else)
> Unfortunately there isn't any widespread standard for this, which is
> the raison d'etre of terminfo in the first place. Querying terminfo
> for it is the best way to go IMO.
> "The Direct3D Graphics Pipeline" free book <
> The Computer Graphics Museum <http://computergraphicsmuseum.org>
> The Terminals Wiki <http://terminals.classiccmp.org>
> Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits