Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263423 - app-portage/portage-utils should detect ttys and terminal capabilities
Summary: app-portage/portage-utils should detect ttys and terminal capabilities
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-22 22:05 UTC by michael@smith-li.com
Modified: 2010-06-08 05:33 UTC (History)
0 users

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 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