Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Color code explanation for emerge -pv output
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dylanthomasfan
n00b
n00b


Joined: 02 Mar 2005
Posts: 27

PostPosted: Thu Aug 12, 2010 9:51 pm    Post subject: Color code explanation for emerge -pv output Reply with quote

Folks,

I use a gnome terminal and I get color coded output when I issue the following type of command:
Code:
emerge -pv tomcat


My question is, is there any place where the color code is explained?

For example one line of output from the aforementioned command is
[ebuild R ] www-servers/tomcat-6.0.26 USE="doc examples -source -test" 0 kB

How should I understand this? I thought red USE flags signify stuff that's already on make.conf, but doesn't look like that is correct (I checked with another application).

Any help is appreciated.

Thanks!
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu Aug 12, 2010 10:00 pm    Post subject: Reply with quote

I think for use flags:
red = use flag was and is still enabled
blue = use flag was and is still disabled
yellow = use flag will change with this emerge, also shows percent sign for a cue without colors if I remember

For the package status flags on the left, the color coding is pretty obvious and I believe just corresponds to the letters it's showing (N = new, R = reinstall same version, U = upgrade version, S = slotted package, B = package blocking occurred, etc)

I might be forgetting something, but the colors don't give you any info the actual text doesn't.
Back to top
View user's profile Send private message
stuNNed2
n00b
n00b


Joined: 17 Jul 2009
Posts: 32
Location: New Orleans, LA, U.S.

PostPosted: Thu Aug 12, 2010 10:25 pm    Post subject: how? Reply with quote

how do get the colored output? i use gnome-terminal too and the colored output is minimal. not nearly as colorful as displayed here. do i need to emerge anything?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Thu Aug 12, 2010 10:43 pm    Post subject: Reply with quote

emerge --color=y something

or you can do like the space invaders arcade machine (good old times :D )
(ps: if you know how the arcade was doing colors -> holly shit you're old !)
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu Aug 12, 2010 11:01 pm    Post subject: Reply with quote

This is something that's easily done with an alias for emerge in root's .bashrc, in fact similar things are done for ls and grep in the system profile.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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