LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question: Different color scheme for each Terminal? (http://www.linuxquestions.org/questions/linux-newbie-8/question-different-color-scheme-for-each-terminal-832130/)

struct 09-14-2010 12:59 PM

Question: Different color scheme for each Terminal?
 
I have several terminals opened at once to monitor the logs. It would be helpful to choose different basic color for text (and maybe for background) for each terminal so I can quickly locate the one I need. Anyone know how to do this or perhaps point me to right direction?

struct 09-14-2010 01:03 PM

nevermind... I figured it out.

GrapefruiTgirl 09-14-2010 01:08 PM

Depends a little bit on what terminal emulator program(s) you are using (for example, eterm, xterm, rxvt, konsole...) but generally, all of them provide a mechanism for setting the foreground & background colors when they start up. Have a look at the manpage(s) for your terminal program, and then test out their color options and find combinations that you like.
Later on, to simplify things when you start up your various color terminals, you could maybe use shell aliases for each different colored terminal scheme, such as `xtermred`, `xtermblue`, `xtermgreen` or write a tiny little wrapper script which either starts your various terminals, or accepts arguments for the colors so you don't need to remember the exact arguments, like for example:

./myscript white red

which might start your terminal with white text on red background (ugh! :) )

Note too, that you can change the text color in any terminal, at any time, by printing/echoing ascii escape codes to the terminal. Such as:

Code:

printf '\e[1;34m'
That will make the text turn blue. To reset to normal colors, use (if I remember right):
Code:

printf '\e[0;30m'
Good luck! :)

:) P.S. - what did you decide on above, where you 'figured it out'?

struct 09-14-2010 01:37 PM

Thanks GrapefruiTgirl
You're method is too technical for me.

I'm using ubuntu and just went into Edit > Profiles on the terminal window and set up a new profile with different color scheme. Within this profiles window, there is a profile selector that I can choose this newly created profile when launching a new terminal.

GrapefruiTgirl 09-14-2010 01:39 PM

Ahh, yes - your method sounds good, and less fiddling than what I proposed :) (though I myself use what I proposed - it did take fiddling at first, but now I'm happy!)

Best of success,

Sasha

P.S. - (If you haven't already, you can mark this [SOLVED] if you like, using Thread Tools menu above the first post in the thread)


All times are GMT -5. The time now is 11:40 PM.