<div dir="ltr">Hi Chandler,<div><br></div><div style>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.</div>
<div style><br></div><div style>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?</div>
<div style><br></div><div style>James</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 August 2013 21:54, Richard <span dir="ltr"><<a href="mailto:legalize@xmission.com" target="_blank">legalize@xmission.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In article <CAHnXoamHr48T=<a href="mailto:q4Zs-pMuvNG4MUnuMzkDRiUSNzJAAHanHRq4w@mail.gmail.com">q4Zs-pMuvNG4MUnuMzkDRiUSNzJAAHanHRq4w@mail.gmail.com</a>>,<br>
<div><div class="h5">    Sean Silva <<a href="mailto:silvas@purdue.edu">silvas@purdue.edu</a>> writes:<br>
<br>
> On Wed, Aug 7, 2013 at 12:19 PM, Richard <<a href="mailto:legalize@xmission.com">legalize@xmission.com</a>> wrote:<br>
><br>
> > (Background: I'm the creator of the terminals wiki, linked in my<br>
> > signature, and I probably know way too much about terminals, escape<br>
> > codes, curses, termcap, etc., than any sane person should know :-).<br>
> > Amazingly enough, I have quite a bit of company in that box of insane<br>
> > persons.)<br>
><br>
> Do you have any idea if it would be too much code to detect the presence of<br>
> color terminals ourselves? (e.g. just hardcoding the small(?) amount of<br>
> specific functionality we need to detect color support and nothing else)<br>
<br>
</div></div>Unfortunately there isn't any widespread standard for this, which is<br>
the raison d'etre of terminfo in the first place.  Querying terminfo<br>
for it is the best way to go IMO.<br>
<div class="HOEnZb"><div class="h5">--<br>
"The Direct3D Graphics Pipeline" free book <<a href="http://tinyurl.com/d3d-pipeline" target="_blank">http://tinyurl.com/d3d-pipeline</a>><br>
     The Computer Graphics Museum <<a href="http://computergraphicsmuseum.org" target="_blank">http://computergraphicsmuseum.org</a>><br>
         The Terminals Wiki <<a href="http://terminals.classiccmp.org" target="_blank">http://terminals.classiccmp.org</a>><br>
  Legalize Adulthood! (my blog) <<a href="http://legalizeadulthood.wordpress.com" target="_blank">http://legalizeadulthood.wordpress.com</a>><br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>