setting default xterm colors

Alexander Gottwald alexander.gottwald@s1999.tu-chemnitz.de
Wed Apr 27 09:27:00 GMT 2005


On Wed, 27 Apr 2005, Carlo Florendo wrote:

> Hello,
> 
> Does anyone know a way to set xterm colors without using the -bg and -fg 
> options all the time?    I know one way to do it would be to alias xterm 
> in bash_profile such that the command always includes the bg and fg 
> options every time it is invoked. Aliasing works for me but this is not 
> what I want. 

man xterm lists a huge number of commandline options and their respective
resources. 
-bg => background
-fg => foreground

These resources can either be set in /usr/lib/X11/app-defaults/XTerm* 
but these changes will get lost with the next xterm update or in ~/.Xdefaults
You may also create a global file /usr/X11R6/lib/X11/xinit/.Xresources and import 
tzhe settings with 

xrdb -merge /usr/X11R6/lib/X11/xinit/.Xresources

If you're using startx to start the xserver, it will automaticly read the settings 
from these files (in this order)
/usr/X11R6/lib/X11/xinit/.Xresources
$HOME/.Xdefaults

The syntax of these files is the same as in /usr/lib/X11/app-defaults/XTerm*

bye
	ago
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723



More information about the Cygwin-xfree mailing list