<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 7, 2013 at 12:25 PM, Sean Silva <span dir="ltr"><<a href="mailto:silvas@purdue.edu" target="_blank" class="cremed">silvas@purdue.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Aug 7, 2013 at 12:19 PM, Richard <span dir="ltr"><<a href="mailto:legalize@xmission.com" target="_blank" class="cremed">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>
(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></blockquote><div><br></div></div><div>Do you have any idea if it would be too much code to detect the presence of color terminals ourselves? (e.g. just hardcoding the small(?) amount of specific functionality we need to detect color support and nothing else)</div>
</blockquote></div><br>I see two possible ways to do this, both of which I considered and rejected.</div><div class="gmail_extra"><br></div><div class="gmail_extra">1) Parse the terminfo database by hand in LLVM. See my reply to Joerg, this looks like a considerable amount of work, a huge portability problem, and ultimately not much of a win over uses curses.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">2) Manually build up a list of TERM strings that support colors. We could potentially mine terminfo data to build the initial list and just bake it into the code. However, that means that Joe Clever Developer who writes his own terminal emulator with perfect support for colors gets no help. That doesn't seem like the right tradeoff either.</div>
</div>