You are not logged in.

#1 2011-06-09 18:53:46

MaTachi
Member
Registered: 2011-06-07
Posts: 52

Make Gnome Terminal Use Colors?

Hi!

I browsed through some pages in this thread https://bbs.archlinux.org/viewtopic.php?id=51818 and saw that many had managed to colorize commands and stuff like that. For an example this image: http://ompldr.org/vOHgzNw, where carnager and freebox got some neat colors. Is this accomplished with an addon to the regular terminal, or is it another terminal?

I'm using Gnome 3 and the standard terminal, and I just want to get some more colors to make it easier to read. smile

Offline

#2 2011-06-09 18:58:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Make Gnome Terminal Use Colors?

Offline

#3 2011-06-09 19:15:44

MaTachi
Member
Registered: 2011-06-07
Posts: 52

Re: Make Gnome Terminal Use Colors?

I just hoped that there was a neat program that would automatically add colors to the commonly used commands. But I won't cry if there isn't one. smile

Manually writing ridiculous amounts of code just to colorize the outputs isn't really my cup of tea.

Offline

#4 2011-06-09 19:20:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Make Gnome Terminal Use Colors?

There are apps that do that automatically, but I think that carnager and freebox are this person's prompt.
What kind of output you want colorized and how?

Offline

#5 2011-06-09 20:05:52

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: Make Gnome Terminal Use Colors?

MaTachi wrote:

I'm using Gnome 3 and the standard terminal, and I just want to get some more colors to make it easier to read. smile

To make the terminal pretty you can add aliases such as

alias ls='ls --color=auto'
alias grep='grep --color=auto'

in your ~/.bashrc to get colored output from these commands, and you should also get/steal/make/ yourself a nice PS1 prompt as karol mentioned. If this is too much typing, well then you'll just have to cope with that wink.

Offline

#6 2011-06-09 22:11:02

MaTachi
Member
Registered: 2011-06-07
Posts: 52

Re: Make Gnome Terminal Use Colors?

karol wrote:

There are apps that do that automatically, but I think that carnager and freebox are this person's prompt.
What kind of output you want colorized and how?

Ah, and the prompt is colored and designed with the Color Bash Prompt stuff. Just looked at the page briefly at first and thought that it was for more than only that. Silly me. tongue

Outputs I want to colorize are for an example from the commands "man pacman", "sudo pacman --help" and "top". Outputs with many lines of text, that currently look pretty boring when they only are in the default text color. What is fun with making beautiful color schemes if we never see the colors in the outputs?

roygbiv wrote:
MaTachi wrote:

I'm using Gnome 3 and the standard terminal, and I just want to get some more colors to make it easier to read. smile

To make the terminal pretty you can add aliases such as

alias ls='ls --color=auto'
alias grep='grep --color=auto'

in your ~/.bashrc to get colored output from these commands, and you should also get/steal/make/ yourself a nice PS1 prompt as karol mentioned. If this is too much typing, well then you'll just have to cope with that wink.

Do you know if there is a list somewhere with more of these kinds of aliases? smile
And thanks for the brilliant idea to steal a prompt. Found a really nice one that made me love the terminal even more.

Offline

#7 2011-06-09 22:14:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Make Gnome Terminal Use Colors?

Offline

#8 2011-06-09 23:17:48

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: Make Gnome Terminal Use Colors?

Check out dircolors here and there + pacman-color. I don't use them but you should (I'm a minimalist). Cheers.

Offline

#9 2011-06-10 00:47:06

MaTachi
Member
Registered: 2011-06-07
Posts: 52

Re: Make Gnome Terminal Use Colors?

I'm sorry, but this seems to be too much work for what I'm getting out of it. ^^

I was only looking for something simple to install that would style and make color changes here and there in the most common terminal outputs. I'm not so interested that I want to spend time on configuring every single terminal application to achieve this.

But thank you, you two, for your help! smile

Offline

#10 2011-06-10 01:03:28

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Make Gnome Terminal Use Colors?

Try cw.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#11 2011-06-10 11:12:46

MaTachi
Member
Registered: 2011-06-07
Posts: 52

Re: Make Gnome Terminal Use Colors?

Oh, that looks cool! Sadly I can't get it to work. I have installed it and ran these commands in the terminal:

[13:10] daniel@arch ~ $ colorcfg 1
[ cw/color wrapper: user setup script. ]
[ cw library path: /usr/lib/cw ]

* added PATH environmental variable to /home/daniel/.bash_profile
* added PATH environmental variable to /home/daniel/.login
* done. (you must exit your shell for the changes to take effect)

[13:10] daniel@arch ~ $ color on
color wrapping is now: ON

But all outputs are still in the same color as before.

Offline

Board footer

Powered by FluxBB