Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120576 - colors for etc-update
Summary: colors for etc-update
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 125120
Blocks:
  Show dependency tree
 
Reported: 2006-01-27 15:26 UTC by Stefan Berggren
Modified: 2006-10-26 13:38 UTC (History)
0 users

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


Attachments
My patch (etc-update.patch,1.94 KB, patch)
2006-02-23 03:54 UTC, Stefan Berggren
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Berggren 2006-01-27 15:26:32 UTC
I have made a small enhancement (in my option) to etc-update. See link for more info and patch.
Comment 1 SpanKY gentoo-dev 2006-02-22 22:37:31 UTC
post all info/patches into the bug report and re-open please
Comment 2 Stefan Berggren 2006-02-23 03:54:38 UTC
Created attachment 80510 [details, diff]
My patch

This is a small patch to enable colors in etc-update for more easy reading, i have used this for a while and like it and i hope more people will have use of it.

Here is a link to a image thats shows my patch in use http://junkpile.mine.nu/~s/public/etc-update.png
Comment 3 Stefan Berggren 2006-02-23 03:55:44 UTC
> post all info/patches into the bug report and re-open please
done
Comment 4 SpanKY gentoo-dev 2006-02-23 18:48:04 UTC
no real point in making it a configure option ... might be better to try and scrape the color codes out of portage (output.py defines a bunch)
Comment 5 Zac Medico gentoo-dev 2006-02-23 20:01:34 UTC
The eselect package has output.bash which is similar to portage's output.py but it  organizes colors by meaning instead of by appearance.  For example, instead of using red for all warning messages, it defines COLOUR_WARN which happens to be red, but could be mapped to some other color.

What I'd really like to see is a color mapping service (a simple command line program that queries a color mapping database) that all console apps can share regardless of the language they are implemented in (bash, python, or whatever).  This way you could define the colors that you'd like to use for various meanings.  Then console apps use the service to lookup the appropriate color when they need to convey a meaning.  If we decide to go this route then this bug can be absorbed into bug 63517 since portage's bash and python parts will be able to share the same color mapping service.
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2006-07-19 04:22:04 UTC
Unsure about this, it attaches a good/bad feeling to the options that isn't really true.
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2006-10-26 13:38:01 UTC
I really liked the bold/non-bold part of your patch, but I made etc-update only show the real config file ages ago which kind of deprecated this part. For the color part I agree with Marius that it attaches a good/bad feeling which isn't true. That being said IF we were to add colors, all of the options should get colors to somehow categorize them, not just the first two.