Summary: | emerge output should not be coloured when redirected | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arcady Genkin <agenkin-gentoo-bugzilla> |
Component: | Current packages | Assignee: | Geert Bevin <gbevin> |
Status: | RESOLVED DUPLICATE | ||
Severity: | minor | CC: | agenkin-gentoo-bugzilla |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Arcady Genkin
2002-02-02 13:00:49 UTC
I think 'less -r' (which should be the default in newer baselayouts) will do what you want. For other cases, if there is not already, we should probably provide an option to emerge that disables color (like keychain). "less -r" does what you say, but my main point was that whenever the output goes to anything other than a terminal, the color escapes are, probably, not welcome. So, if there is a way to detect what sort of a file descriptor the stdout is, the output should not be coloured unless it is a tty. |