[CMake] Support for colored makefile output with tmux

Mike Lui mdl45 at drexel.edu
Sat Mar 26 09:54:15 EDT 2016


I'm referencing a problem similar to this:

https://github.com/thestinger/termite/issues/207
https://github.com/google/googletest/issues/698

Ncurses 6.0 comes with a tmux and tmux-256color terminfo that allows things
like italics to work when in tmux.

On Sat, Mar 26, 2016 at 5:46 AM Dan Liew <dan at su-root.co.uk> wrote:

> On 26 March 2016 at 09:30, Dan Liew <dan at su-root.co.uk> wrote:
> > On 26 March 2016 at 01:15, Mike Lui <mdl45 at drexel.edu> wrote:
> >> When I use tmux and set my TERM to either 'tmux' or 'tmux-256color', I
> don't
> >> get colorized output of from cmake generated Makefiles.
> >
> > My TERM is set to "xterm-256color" and with that coloured output when
> > running ``make`` in Tmux works fine for me.
> >
> > I'm using tmux 2.1-2, in gnome-terminal 3.18.3 on Arch Linux with CMake
> 3.5.0
>
> Just to note coloured output in makefiles seems to be implemented
> using an undocumented cmake command
>
> ``cmake -E cmake_echo_color --cyan hello world``
>
> If you look at [1] you can see the supported switches for different
> colours.
>
> [1]
> https://github.com/Kitware/CMake/blob/bd15330da1edaf4a662335ff53648074fdc30e2b/Source/cmcmd.cxx#L1176
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160326/9a874068/attachment.html>


More information about the CMake mailing list