Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Easy way to change color output of Portage?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
StifflerStealth
Retired Dev
Retired Dev


Joined: 03 Jul 2002
Posts: 968

PostPosted: Sun Jan 01, 2006 7:05 pm    Post subject: Easy way to change color output of Portage? Reply with quote

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
View user's profile Send private message
fredor
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 84
Location: UK

PostPosted: Sun Jan 01, 2006 7:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Jan 01, 2006 7:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
StifflerStealth
Retired Dev
Retired Dev


Joined: 03 Jul 2002
Posts: 968

PostPosted: Sun Jan 01, 2006 8:45 pm    Post subject: Reply with quote

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. :D It's a very nice color on the console. 8)
_________________
Nothing to read in this sig. Move along.
Back to top
View user's profile Send private message
blue.sca
l33t
l33t


Joined: 28 Aug 2003
Posts: 680
Location: Mainz, Germany

PostPosted: Thu Jan 26, 2006 9:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Sun Jan 29, 2006 6:03 pm    Post subject: Reply with quote

Same here, please change that silly yellow 8)
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sun Jan 29, 2006 7:07 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads in favour of Portage / emerge: Marking new flags with % / yellow toggle?
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum