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 06-22-2008, 05:18 PM   #1
xadrith
Member
 
Registered: Oct 2007
Distribution: Slack 12.1
Posts: 43

Rep: Reputation: 15
xterm and .bashrc


I'm trying to configure the .bashrc file so that when I open an xterm on my fluxbox desktop it opens with green type and a black background. I put this into the file:

xterm -fg green -bg black

But when I open a xterm session it duplicates windows upon windows of xterm until I end up having to kill the xserver and restart it...

What would be the appropriate command to input into the .bashrc file?
 
Old 06-22-2008, 05:38 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Putting a xterm command into .bashrc equals to start a new xterm each time a xterm is open, resulting in an infinite loop. To change the colors of the xterm, add the following lines to ~/.Xdefaults (or create it if missing):
Code:
XTerm*background: black
XTerm*foreground: green
Then to make the changes active, do
Code:
xrdb -load ~/.Xdefaults
start a new xterm and the trick is done!
 
Old 06-22-2008, 05:46 PM   #3
xadrith
Member
 
Registered: Oct 2007
Distribution: Slack 12.1
Posts: 43

Original Poster
Rep: Reputation: 15
Excellent! and thank you
 
  


Reply


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
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 8 02-26-2008 04:18 PM
Setting path: /etc/profile, /etc/bashrc or ~/.bashrc Swakoo Linux - General 1 08-07-2007 11:59 PM
When I tries to execute the xterm i got this message: xterm: no available ptys johnsanty Other *NIX 4 09-20-2006 01:29 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 04:51 AM
custom xterm title when already defined in .bashrc brian0918 Linux - Software 1 06-01-2004 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration