| View previous topic :: View next topic |
| Author |
Message |
StifflerStealth l33t


Joined: 03 Jul 2002 Posts: 918
|
Posted: Sun Jan 01, 2006 2:05 pm Post subject: Easy way to change color output of Portage? |
|
|
Hi,
Is there an easy way to change the color that emerge displays when using pretend? More specifically, I use a white background for my terminal emulator and portage displays some text in yellow and I can't read that, so I want to change it to something else so I can read it.
Example: | Quote: | | [ebuild U ] dev-db/mysql-5.0.18 [5.0.17] USE="-max-idx-128%" | That's what I get. Very hard to read, so I want to change that.
I did do a google search and a forum search for this, but didn't find much, so sorry if this has already been asked.
Thanks _________________ Nothing to read in this sig. Move along. |
|
| Back to top |
|
 |
fredor Tux's lil' helper


Joined: 13 Oct 2003 Posts: 84 Location: UK
|
Posted: Sun Jan 01, 2006 2:11 pm Post subject: |
|
|
If you are using KDE terminal, you can change the colours with 'Settings >> Schema' (I think), and unless you save the settings, it will revert to normal next time you use it. _________________ Gentoo /amd64/2007.0
AMD Athlon64 X2 4200+
ASUS M2N32-SLI Deluxe |
|
| Back to top |
|
 |
PaulBredbury Veteran


Joined: 14 Jul 2005 Posts: 5740
|
Posted: Sun Jan 01, 2006 2:13 pm Post subject: |
|
|
| I suppose you could change the calls to yellow() in /usr/bin/emerge to e.g. brown(). The colour functions are in /usr/lib/portage/pym/output.py |
|
| Back to top |
|
 |
StifflerStealth l33t


Joined: 03 Jul 2002 Posts: 918
|
Posted: Sun Jan 01, 2006 3:45 pm Post subject: |
|
|
Thanks for the info. I was kinda hoping for a config file with a list of colors for various output features. Editing /usr/bin/emerge is hard because there are 3,346 lines of code in there, and if I emerge a new version, I would need to diff all those changes so, editing /usr/lib/portage/pym/output.py is a more logical choice. I just change the codes of yellow to some other color. That is a dirty hack, but it is more pernament and will change over all terminals and even native command line. I really wish for a config file though. Oh well. Thanks again.
Cheers.
EDIT: If you want to know, I changed it to purple since that was unsed and that looks nice. It's a very nice color on the console.  _________________ Nothing to read in this sig. Move along. |
|
| Back to top |
|
 |
blue.sca l33t


Joined: 28 Aug 2003 Posts: 680 Location: Mainz, Germany
|
Posted: Thu Jan 26, 2006 4:19 pm Post subject: |
|
|
I would also see an easy method to set the color of the emerge output. _________________ geek by nature, linux by choice
i want my avatar back... thank you
:wq |
|
| Back to top |
|
 |
Phlogiston Veteran


Joined: 27 Jan 2004 Posts: 1720 Location: Europe, Swizerland
|
Posted: Sun Jan 29, 2006 1:03 pm Post subject: |
|
|
Same here, please change that silly yellow  _________________ Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, suspend2, fingerprint sensor |
|
| Back to top |
|
 |
Maedhros Administrator


Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
|
| Back to top |
|
 |
|