LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-14-2010, 12:59 PM   #1
struct
Member
 
Registered: Feb 2009
Posts: 68

Rep: Reputation: 10
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?
 
Old 09-14-2010, 01:03 PM   #2
struct
Member
 
Registered: Feb 2009
Posts: 68

Original Poster
Rep: Reputation: 10
nevermind... I figured it out.
 
Old 09-14-2010, 01:08 PM   #3
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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'?
 
Old 09-14-2010, 01:37 PM   #4
struct
Member
 
Registered: Feb 2009
Posts: 68

Original Poster
Rep: Reputation: 10
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.
 
Old 09-14-2010, 01:39 PM   #5
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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)

Last edited by GrapefruiTgirl; 09-14-2010 at 01:40 PM.
 
  


Reply

Tags
terminal


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i change my windows xp dull color scheme shajed68 General 3 10-18-2007 07:33 AM
xterm color scheme chunlee Linux - Software 1 12-20-2004 06:49 PM
How To Export Your KDE Color Scheme? Tsuroerusu Linux - General 3 09-05-2004 04:23 AM
Dark Color Scheme in Mdk10.0? akihandyman Mandriva 0 07-16-2004 05:21 PM
Changing the color scheme for MOTIF danishmr Linux - Software 0 01-07-2004 01:10 AM


All times are GMT -5. The time now is 05:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration