Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 263423

Summary: app-portage/portage-utils should detect ttys and terminal capabilities
Product: Portage Development Reporter: michael <michael>
Component: ToolsAssignee: Portage Utils Team <portage-utils>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description michael@smith-li.com 2009-03-22 22:05:53 UTC
q outputs colors under many conditions. However, when the terminal doesn't support colors, and when stdout is not a tty, q should not output colors, even if the -C flag isn't specified.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2009-12-05 09:56:51 UTC
that means using and linking against ncurses, neither of which i want to do

the whole point of -C is to *disable* colors, not enable, so i dont really understand the last part of your statement
Comment 2 SpanKY gentoo-dev 2010-06-08 05:33:05 UTC
i dont really like this kind of auto-magic detection, plus we cant really do it cleanly without pulling in deps, plus i like having color when piping into less