Re: [cfe-users] Why doesn't clang use colors for diagnostics by default?

2015-09-10 Thread Victor via cfe-users
I'm using command like this: $ clang++ prg.cpp My Clang is built from sources. What libraries it needs to use colors automatically? Or may be there is some option that I can specify for configure? On Wed, 9 Sep 2015 19:49:21 -0700 Richard Trieu wrote: Are you invoking Clang with "clang foo

Re: [cfe-users] Why doesn't clang use colors for diagnostics by default?

2015-09-10 Thread don hinton via cfe-users
Hi Victor: Try setting TERM to a color terminal, e.g., xterm-color or xterm-256color and see if that helps. I use xterm-256color inside tmux and it works fine. hth... don On Thu, Sep 10, 2015 at 2:40 AM, Victor via cfe-users < cfe-users@lists.llvm.org> wrote: > I'm using command like this: > >

Re: [cfe-users] Why doesn't clang use colors for diagnostics by default?

2015-09-10 Thread don hinton via cfe-users
Did you build clang? Do you have terminfo installed? I think that's what it checks. On Thu, Sep 10, 2015 at 11:49 AM, Victor wrote: > No. Still no luck. Tried both > > > On Thu, 10 Sep 2015 11:39:24 -0400 > don hinton wrote: > >> Hi Victor: >> >> Try setting TERM to a color terminal, e.g., x

Re: [cfe-users] Why doesn't clang use colors for diagnostics by default?

2015-09-10 Thread don hinton via cfe-users
I meant the headers. If you use cmake, take a look at cmake/config-ix.cmake. Configure does something similar. Basically, if it finds the right headers, it will #define HAS_TERMINFO, and the code that checks it is terminalHasColors() in lib/Support/Unix/Process.inc. Not sure how gcc checks. O

Re: [cfe-users] Why doesn't clang use colors for diagnostics by default?

2015-09-10 Thread don hinton via cfe-users
Actually, I just looked at the cmake code and it checks a list of libraries, i.e., tinfo, terminfo, curses, ncurses, and ncursesw. If any of them have setupterm, it will define HAVE_TERMINFO 1. So, at least that give you something to check. hth... don On Thu, Sep 10, 2015 at 12:06 PM, don hinto

Re: [cfe-users] Why doesn't clang use colors for diagnostics by default?

2015-09-10 Thread Victor via cfe-users
Did you build clang? Yes Do you have terminfo installed? $ find /usr/share/terminfo -type f /usr/share/terminfo/k/kon2 /usr/share/terminfo/k/kon /usr/share/terminfo/k/konsole-256color /usr/share/terminfo/k/konsole /usr/share/terminfo/v/vs100 /usr/share/terminfo/c/cygwin /usr/share/terminfo/c/c

Re: [cfe-users] Why doesn't clang use colors for diagnostics by default?

2015-09-10 Thread Victor via cfe-users
No. Still no luck. Tried both On Thu, 10 Sep 2015 11:39:24 -0400 don hinton wrote: Hi Victor: Try setting TERM to a color terminal, e.g., xterm-color or xterm-256color and see if that helps. I use xterm-256color inside tmux and it works fine. hth... don On Thu, Sep 10, 2015 at 2:40 AM,