Gentoo Archives: gentoo-user

From: Miroslav Rovis <miro.rovis@××××××××××××××.hr>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How do I turn off ansi (colour) codes in GCC 6.3.0 ?
Date: Sun, 14 May 2017 00:53:33
Message-Id: 20170514005014.GA9502@g0n.xdwgrp
In Reply to: Re: [gentoo-user] How do I turn off ansi (colour) codes in GCC 6.3.0 ? by R0b0t1
1 On 170513-12:53-0500, R0b0t1 wrote:
2 > On Sat, May 13, 2017 at 9:25 AM, Miroslav Rovis
3 > <miro.rovis@××××××××××××××.hr> wrote:
4 > > On 170510-20:03-0400, Walter Dnes wrote:
5 > >> On Wed, May 10, 2017 at 01:35:24PM -0500, R0b0t1 wrote
6 > >>
7 > >> > The option is "-fdiagnostics-color=never" or "-fno-diagnostics-color".
8 > >> > You can also set the environment variable GCC_COLORS to the empty
9 > >> > string. The latter is probably more useful in the context of portage.
10 > >>
11 > >> Thank you. I successfully tried...
12 > >>
13 > >> GCC_COLORS="" emerge icewm
14 > > Another tip to remember.
15 > >
16 > >> I suppose the next step is to add GCC_COLORS="" to make.conf.
17 > >>
18 > > I wonder why sticking " --color=n" in the EMERGE_DEFAULT_OPTS in
19 > > make.conf (e.g. mine is:
20 > >
21 > > EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --autounmask-keep-masks --ask --verbose --color=n"
22 > >
23 > > does only partly its job. Erratically, I'd say. You never know if it
24 > > will or not remove color... A bug should be posted for that, but I have
25 > > a partly broken system at this time...
26 > >
27 >
28 > That switch only handles the coloring of portage output. I suggested
29 > using GCC_COLORS precisely because "--color=n" doesn't seem to
30 > propagate to subcommands which do output coloring.
31 >
32 > Another program you might want to disable output coloring for is
33 > CMake, using CMAKE_COLOR_MAKEFILE=OFF.
34 >
35
36 Thanks for the tip! But let me see... Like the above (repasting):
37 > >> GCC_COLORS="" emerge icewm
38 pr maybe stick in the /etc/portage/bashrc or in some other way?
39
40 --
41 Miroslav Rovis
42 Zagreb, Croatia
43 https://www.CroatiaFidelis.hr

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] How do I turn off ansi (colour) codes in GCC 6.3.0 ? R0b0t1 <r030t1@×××××.com>