LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   xterm and .bashrc (https://www.linuxquestions.org/questions/linux-newbie-8/xterm-and-bashrc-650933/)

xadrith 06-22-2008 04:18 PM

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?

colucix 06-22-2008 04:38 PM

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!

xadrith 06-22-2008 04:46 PM

Excellent! and thank you ;)


All times are GMT -5. The time now is 12:19 PM.