This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setting default xterm colors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]