colours in equo terminal output [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

colours in equo terminal output [Solved]

Postby kukulin » Fri May 17, 2013 15:34

Hi
I find it difficult to see some of the colours in equo terminal output.
Is there a way of changing these colours please?
kukulin
Last edited by kukulin on Mon May 20, 2013 17:52, edited 1 time in total.
kukulin
Baby Hen
 
Posts: 5
Joined: Fri May 17, 2013 15:27

Re: colours in equo terminal output

Postby kukulin » Fri May 17, 2013 15:46

Hi
I've tried changing the colours in the xfce terminal settings.
The best result is when I change the presets under edit/preferences/colors to Xterm.
However, I still have blue and green, which are the two colours I have difficulty with.
Is there another way of changing these colours?
Thanks again
kukulin
kukulin
Baby Hen
 
Posts: 5
Joined: Fri May 17, 2013 15:27

Re: colours in equo terminal output

Postby Fitzcarraldo » Fri May 17, 2013 16:25

If you want to get rid of all colours completely and just have white text on a black background, the easy way is just to pipe the output to e.g. the cat command. For example:

Code: Select all
equo search firefox | cat
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: colours in equo terminal output

Postby kukulin » Fri May 17, 2013 16:58

Hi Fitzcarraldo
thank you for your reply.
I'm showing my lack of knowledge I'm sure but I dont understand the reply.

I have difficulty with some colours, particularly red and green, and to a lesser extent blue.

When using the terminal in the normal course of events I can set it to black on white or white on black (using edit/preferences on the terminal) and that takes care of everything other than the user/host prompt, which I can live with.

Where I have the difficulty is with the terminal output when running equo (and rigo).
Changing all of that output to white on black or black on white would suit me better but
your reference to firefox has thrown me. I dont see the connection between firefox and the outputs of equo / rigo

Sorry if I am missing something obvious here.
kukulin
kukulin
Baby Hen
 
Posts: 5
Joined: Fri May 17, 2013 15:27

Re: colours in equo terminal output

Postby Fitzcarraldo » Fri May 17, 2013 17:02

It's just an example!

Code: Select all
equo install <package name> | cat

Code: Select all
equo search <package name> | cat

Code: Select all
equo remove <package name> | cat

Code: Select all
equo update | cat

Code: Select all
equo upgrade | cat

and so on. It all displays as white text on a black background (or black on a white background, or whatever you have set your Konsole/Terminal defaults to be).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: colours in equo terminal output

Postby kukulin » Mon May 20, 2013 17:51

Hi Fitzcarraldo
I certainly walked into that one!!
That does the trick for me - many thanks.
Now marking this solved
kukulin
kukulin
Baby Hen
 
Posts: 5
Joined: Fri May 17, 2013 15:27

Re: colours in equo terminal output [Solved]

Postby dave_64 » Mon May 20, 2013 20:38

He is just using the reference to firefox as an example. You can issue that command from a root terminal and see the results, which will be without colors. Keep in mind that the vertical line is called a "pipe" and it is the upper case of the backslash key.
With the "pipe", you are sending the output of the search command to a "reader" named "cat". There are other readers you could use, such as "less" and "more".
You could run the example command this way with nearly identical results:
equo search firefox | more
I use the pipe command when searching for packages when I have lost my graphical interface and have to use the non-graphical terminal or "console". If not for the pipe to "more", I have no way of reading all the output from the command. With "more", the output is displayed one page at a time, the space bar advances to the next page.
Hope this helps.
dave_64
Advanced Hen
 
Posts: 226
Joined: Sun Feb 22, 2009 20:33

Re: colours in equo terminal output [Solved]

Postby kukulin » Tue May 21, 2013 9:54

hi dave_64
thanks for epanding on this - very helpful.
kukulin
kukulin
Baby Hen
 
Posts: 5
Joined: Fri May 17, 2013 15:27

Re: colours in equo terminal output [Solved]

Postby svantoviit » Tue May 21, 2013 11:46

Probably it would be useful if equo had a --color < y | n > option as emerge has.
svantoviit
Old Dear Hen
 
Posts: 658
Joined: Sun Feb 28, 2010 17:55

Re: colours in equo terminal output [Solved]

Postby Honeyman » Sun Jun 02, 2013 23:45

@kukulin:

I do not know about the XFCE-terminal, but GNOME's and MATE'S Terminal, as well as KDE's Konsole allow you to set colors displayed in the profile, which would also affect the colors used for equo's output
When you search for a package and equo finds a huge number of possible candidates for installation for example you could also type:
Code: Select all
equo search <PACKAGE> | less

This pipes the output to less, which removes all the colors and also let's you scroll more easily through the results list. You move down one screen by hitting ENTER.
Je me regarde pour me désoler,
je me compare pour me consoler

Maurice de Talleyrand
Honeyman
Growing Hen
 
Posts: 159
Joined: Sun Apr 08, 2012 2:25
Location: Berlin, Germany

Next

Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 3 guests

cron