Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5714 - Please make emerge less colorful
Summary: Please make emerge less colorful
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-29 03:50 UTC by kjwolf
Modified: 2011-10-30 22:20 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kjwolf 2002-07-29 03:50:57 UTC
Could emerge output be set to non-colored mode (e.g. when output stream is not a
TTY or $TERM is not set)? That would a big help if your terminal doesn't support
colors, or not that kind of color codes, or you want to use some filter program
(like less).
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2002-07-31 07:04:52 UTC
Options:

export NOCOLOR=true

| less -r

| sed 's:.\[[0-9;]*m::g'
Comment 2 SpanKY gentoo-dev 2002-07-31 07:55:07 UTC
well, since the functionality already exists, could it be documented 
somewhere ? (or does it ;])

maybe the man files for make.defaults(5) and make.conf(5) should be updated to 
reflect all the current vars that affect emerge ...
they were last updated with portage 1.7.8 :/

Comment 3 kjwolf 2002-07-31 08:53:49 UTC
Hm, that solution is not very Unixish, I believe. But ls(1) isn't, too. ,-(
Comment 4 Daniel Robbins (RETIRED) gentoo-dev 2002-08-05 00:16:41 UTC
Portage 2.0.24 will disable color if sys.stdout isn't a tty.  Yay! :)