Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71967 - Colors used when outputting to file (or pipe) during builds
Summary: Colors used when outputting to file (or pipe) during builds
Status: RESOLVED DUPLICATE of bug 77566
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-21 10:31 UTC by Russ
Modified: 2006-02-09 19:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
nocolor patch for repoman (portage-2.0.51-r15-nocolor.patch,1.81 KB, patch)
2005-02-05 09:07 UTC, Dylan Carlson (RETIRED)
Details | Diff
nocolor patch for repoman, part deux (it works) (portage-2.0.51-nocolor.patch,1.81 KB, patch)
2005-02-05 09:57 UTC, Dylan Carlson (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Russ 2004-11-21 10:31:28 UTC
Portage documentation states that when outputting to a pipe or file, it will not use ansi color codes. Portage uses color codes during builds even if outputting to a pipe.

Reproducible: Always
Steps to Reproduce:
1.emerge games-emulation/epsxe > file

Actual Results:  
file contained: (as viewed from vi)
 ^[[33;01m*^[[0m Remember, in order to play games, you have to
 ^[[33;01m*^[[0m be in the 'games' group.

 ^[[32;01m*^[[0m See the usermod(8) manpage for more information.

 ^[[32;01m*^[[0m Caching service dependencies...

Expected Results:  
file should contain:
 * Remember, in order to play games, you have to
 * be in the 'games' group.

 * See the usermod(8) manpage for more information.

 * Caching service dependencies...


Really I think colors should be a command line option that effects the entire
process. I think this would help the poor people that want to use pagers, and
the people designing kde-based frontends.
Comment 1 Dylan Carlson (RETIRED) gentoo-dev 2005-02-05 09:07:12 UTC
Created attachment 50450 [details, diff]
nocolor patch for repoman

courtesy of ChrisWhite (not me)
Comment 2 Dylan Carlson (RETIRED) gentoo-dev 2005-02-05 09:25:51 UTC
Comment on attachment 50450 [details, diff]
nocolor patch for repoman

ok, this doesn't do anything.
Comment 3 Dylan Carlson (RETIRED) gentoo-dev 2005-02-05 09:57:04 UTC
Created attachment 50455 [details, diff]
nocolor patch for repoman, part deux (it works)
Comment 4 Zac Medico gentoo-dev 2006-02-09 19:13:29 UTC

*** This bug has been marked as a duplicate of 77566 ***