Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eix colors changed
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sligo
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2011
Posts: 93

PostPosted: Thu Oct 11, 2012 4:41 pm    Post subject: eix colors changed Reply with quote

In a recent update of eix the color output changed. Some colors are kinda weird (neon green or neon blue). Was this change on purpose or did something broke on my system? Everything else seems still normal. Portage output is still the same. Is there any way to change it back?
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Oct 11, 2012 5:01 pm    Post subject: Reply with quote

i have same problem. on my laptop eix atom is not readale at all and the description also lighter than aom fonts
i tried changing terminal background still no avail
i am also waiting for a reply here :?
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Thu Oct 11, 2012 5:28 pm    Post subject: Reply with quote

You should read the ChangeLog.
In 256 color terminals more colors are now used by default to distinguish the information; the only 256 color scheme in eix-0.27.2 is made for black background.
(In the ChangeLog and the manpage it is also described how to use the old 8-color scheme for every terminal).
In >=eix-0.27.3 (install e.g. the live ebuild from the mv overlay) there are also variables by which you can force black background; in this new version there is also a light color scheme (made for white background) available for 8 and 256 colors; both schemes certainly can need improvements.
If you use the solarized color scheme in X (instead of ANSI colors), there is currently no appropriate color scheme in eix; try to reset to ANSI colors e.g. with eix --ansi
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Thu Oct 11, 2012 6:03 pm    Post subject: Reply with quote

In case somebody is interested to improve the color schemes, here are instructions:
  1. Install >=eix-0.27.3 (e.g. eix-99999999 from the mv overlay), since the new schemes are only there.
  2. eix --dump >~/.eixrc
  3. Edit the color variables in ~/.eixrc (those with "|") to add a new scheme (separated with |) or change of some old scheme.
  4. If you added a new scheme, set COLORSCHEME or COLORSCHEME_ALT, respectively, to use it.
  5. If you think that your scheme is really great, do not forget to submit it upstream :wink: (preferrably with a diff to the defaults in src/eixrc/defaults.cc)

Edit:
6. Remove all those variables from ~/.eixrc which you did not modify so that defaults in newer versions of eix are not ignored.


Last edited by mv on Fri Oct 12, 2012 4:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Oct 12, 2012 4:07 am    Post subject: Reply with quote

mv wrote:
If you use the solarized color scheme in X (instead of ANSI colors), there is currently no appropriate color scheme in eix; try to reset to ANSI colors e.g. with eix --ansi

mv ... with solarized the default colour scheme mostly works, the only changes I made were the following:

/etc/eixrc
Code:
COLOR_VERSION_IUSE="gray"
COLOR_INST_VERSION="yellow,1;black"

The latter is simply cosmetic, but the former should be set to something other than the default as otherwise IUSE is displayed as the same colour as the background (and so "invisible").

best ... khay
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Fri Oct 12, 2012 3:57 pm    Post subject: Reply with quote

khayyam wrote:
mv ... with solarized the default colour scheme mostly works

I was actually more thinking about the 256 color case, because the color numbers in solarized have a completely different meaning (compare e.g. the output of eix --256 with the output of eix --ansi --256); probably even the "named" colors are different, but they should all be readable - this is the purpose of the solarized color scheme.
Quote:
COLOR_VERSION_IUSE="gray"

Thanks; this is a bug of the original scheme (bright black != gray although it looks the same on non-solarized scheme).
Quote:
COLOR_INST_VERSION="yellow,1;black"

This is not a good idea, because then you cannot distinguish in eix-diff a new "best" unstable version number and the installed version number.
By default, eix encodes too much information into colors which is why 16 colors (if you count "bright" differently) were never really sufficient.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Oct 20, 2012 3:31 pm    Post subject: Reply with quote

mv wrote:
khayyam wrote:
COLOR_VERSION_IUSE="gray"

Thanks; this is a bug of the original scheme (bright black != gray although it looks the same on non-solarized scheme).

mv ... ok, so it wasn't just me.

mv wrote:
khayyam wrote:
COLOR_INST_VERSION="yellow,1;black"

This is not a good idea, because then you cannot distinguish in eix-diff a new "best" unstable version number and the installed version number.By default, eix encodes too much information into colors which is why 16 colors (if you count "bright" differently) were never really sufficient.

Yes, I had noticed subsequently. The thing is I rarely use eix-diff and the default colour for eix "installed versions" was such that it was unreadable, so the above was simply a quick fix.

best ... khay
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sat Oct 20, 2012 5:24 pm    Post subject: Reply with quote

khayyam wrote:
the default colour for eix "installed versions" was such that it was unreadable

Are you speaking about the new default "green,1;blue" or the old one "yellow,1;blue"? Was the old one better readable?
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Sat Oct 20, 2012 5:37 pm    Post subject: Reply with quote

for a black background the color scheme seems working ok.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Oct 20, 2012 6:09 pm    Post subject: Reply with quote

mv wrote:
khayyam wrote:
the default colour for eix "installed versions" was such that it was unreadable

Are you speaking about the new default "green,1;blue" or the old one "yellow,1;blue"? Was the old one better readable?

mv ... eix-0.27.1 and so that would be "green,1;blue", though the issue seems to be the contrast between the green/yellow and blue, nether of the above are particularly readable, might I suggest "black,1;blue"?

best ... khay
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sun Oct 21, 2012 6:09 am    Post subject: Reply with quote

eix-0.27.3 is released an will be in tree soon.
khayyam wrote:
black,1;blue

Strange; here is big a difference between black,1 and gray with ANSI colors, but I guess black,1 is still acceptable. This is fixed in eix git master on BerliOS (>=eix-0.27.4)
Back to top
View user's profile Send private message
mva
Developer
Developer


Joined: 01 Jun 2012
Posts: 6
Location: Tomsk||Moscow

PostPosted: Sat Oct 27, 2012 3:40 pm    Post subject: Reply with quote

But why «blue» bg? why not «default»?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Oct 27, 2012 4:12 pm    Post subject: Reply with quote

mva wrote:
But why «blue» bg? why not «default»?

mva ... becuase that would be no different to "color,{N}". The "color,{N};blue" allows "color,{N}" to be a non-descript colour and standout against whatever background is used, and additionally be instantly recognised and groaked.

best ... khay
Back to top
View user's profile Send private message
krigstask
n00b
n00b


Joined: 27 Feb 2007
Posts: 41
Location: Rampova, Inkerimaa, Venämaa

PostPosted: Sun Nov 25, 2012 7:11 pm    Post subject: Reply with quote

Okay, now how can I make eix 0.27.4 display everything in plain old ANSI colours I've grown to know and love? In non-256 urxvt :)
Back to top
View user's profile Send private message
lkraav
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2004
Posts: 129
Location: Estonia

PostPosted: Sun Nov 25, 2012 7:13 pm    Post subject: Reply with quote

krigstask wrote:
Okay, now how can I make eix 0.27.4 display everything in plain old ANSI colours I've grown to know and love? In non-256 urxvt :)


I just went back to 0.25.5. Was not able to use 0.27 with solarized.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Mon Nov 26, 2012 1:34 pm    Post subject: Reply with quote

krigstask wrote:
Okay, now how can I make eix 0.27.4 display everything in plain old ANSI colours I've grown to know and love? In non-256 urxvt :)

See this bug: For non-256 urxvt there will be a special case in >=eix-0.27.5. Until this is out, you can deal with this special case manually by setting
Code:
TERM_ALT='256 [aeEkx]term rxvt$ rxvt-[^u] konsole gnome putty'

(or by setting COLORSCHEME_ALT=0 or 2).[/bug]
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Mon Nov 26, 2012 1:42 pm    Post subject: Reply with quote

lkraav wrote:
Was not able to use 0.27 with solarized.

Just set
Code:
TERM_ALT=
to get the old colorscheme on all terminals.

Note that this will change once >=eix-0.27.5 comes out: There will not only be one alternative terminals but several (to include e.g. 88 color terminals like non-256 urxvt): In newer versions you have to set either
Code:
TERM_ALT1=
TERM_ALT2=
TERM_ALT3= # user settings

or you have to set the respective variables COLORSCHEME{0...3}; e.g.
Code:
COLORSCHEME1=%{COLORSCHEME0}
will make 256 terminals use the same colorscheme as 8 color terminals (depending on the value of DARK either light or dark).

Edit: If you want to override unconditionally all terminals, I recommend to set (>=eix-0.27.5)
Code:
TERM_ALT3=.

(this selects the value of COLORSCHEME3 for all terminals; by default, the latter is 0 or 2, depending on the value of the variable DARK).
Back to top
View user's profile Send private message
sligo
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2011
Posts: 93

PostPosted: Mon Nov 26, 2012 5:20 pm    Post subject: Reply with quote

since i've started the topic and haven't replied again yet, i wanted to thank you for all the detailed info and work on eix. i've just updated to the latest version since it appeared in portage and set things back to 8 colors. it works perfectly now and 8 is just fine for me and my terminal settings. its a good thing to know i can have a more detailed coloring if i want to.
Back to top
View user's profile Send private message
krigstask
n00b
n00b


Joined: 27 Feb 2007
Posts: 41
Location: Rampova, Inkerimaa, Venämaa

PostPosted: Mon Nov 26, 2012 8:19 pm    Post subject: Reply with quote

mv wrote:
(or by setting COLORSCHEME_ALT=0 or 2).

Thanks a lot! If it were `elog`ged, that'd save a lot of confusion :)

And thank you for great tool, its superiority over all the search-package tools in all the distros on earth is unquestionable.
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Sat Dec 01, 2012 6:48 pm    Post subject: Reply with quote

COLORSCHEME_ALT=0 is perfect for me thank you
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sun Dec 02, 2012 8:09 am    Post subject: Reply with quote

frostschutz wrote:
COLORSCHEME_ALT=0 is perfect for me thank you

I would recommend this only for solarized, because the "hash-function" information->color has then lot of collissions :wink:

However, once again: be aware that with >=eix-0.27.5 this will not work anymore due to extension of the testing possibilities.
With >=eix-0.27.5 set instead e.g. TERM_ALT3=. (and, if you want the colors independent of the terminal's background [e.g. for solarized] DARK=true or, equivalently, COLORSCHEME3=0). You will find more in the ChangeLog (and of course more details on the manpage).

krigstask wrote:
If it were `elog`ged, that'd save a lot of confusion

The ChangeLog contains all important information about news and is not too long. In my opinion elog should be saved for information which can cause a real problem; a change of the default colors - which is more related with taste than with real problems (except some unreadabability problems which I did not expect) - does not belong into this category IMHO.
Back to top
View user's profile Send private message
krigstask
n00b
n00b


Joined: 27 Feb 2007
Posts: 41
Location: Rampova, Inkerimaa, Venämaa

PostPosted: Wed Dec 05, 2012 5:47 am    Post subject: Reply with quote

How to get good old colours with >=eix-0.27.5:
Code:
# I prefer to bypass heuristics there to be on the safe side
DARK=true
# TERM_ALT3 will detect the same terminals as TERM_ALT2,
# but use other color scheme (useless, see mv's comment below)
TERM_ALT3="%{TERM_ALT2}"


Last edited by krigstask on Wed Dec 05, 2012 8:16 am; edited 1 time in total
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Wed Dec 05, 2012 7:58 am    Post subject: Reply with quote

krigstask wrote:
Code:
# I prefer to bypass heuristics there to be on the safe side
DARK=true

This is fine.
Quote:
Code:

# TERM_ALT3 will detect the same terminals as TERM_ALT2,
# but use other color scheme
TERM_ALT3="%{TERM_ALT2}"

But this is strange without setting other variables: By default it should change nothing, because COLORSCHEME2 and COLORSCHEME3 are identical.
Moreover, TERM_ALT2 is meant to select 88 color terminals, i.e. the above command gives 88 color terminals the same colorscheme that they would get anyway.
Once again: To treat all terminals identically set
Code:
TERM_ALT3=. # The regular expression "." matches every (nonempty) TERM
# Now set the colorscheme for this match:
COLORSCHEME3=0 # The default would be "0 2" which could choose the value 2 if DARK is false;
# with only one number (COLORSCHEME3=0), DARK is always ignored.
# Alternatively: Keep the default (COLORSCHEME3="0 2") and set DARK=true.
Back to top
View user's profile Send private message
krigstask
n00b
n00b


Joined: 27 Feb 2007
Posts: 41
Location: Rampova, Inkerimaa, Venämaa

PostPosted: Wed Dec 05, 2012 8:26 am    Post subject: Reply with quote

You're right (what a surprise indeed :)
DARK=true is enough. But I was sure that that red-blue-and-white scheme I saw by default isn't intended for dark-bg'ed terminals, so I searched through manpage for "COLORSCHEME=${old-one-please}". Let's hope other users are smarter.

(I've edited my previous post for others to distrust it)
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Wed Dec 05, 2012 11:19 am    Post subject: Reply with quote

my eyes are bleeding
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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