This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
setting default xterm colors
- From: Carlo Florendo <list-subscriber at hq dot astra dot ph>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 27 Apr 2005 15:05:23 +0800
- Subject: setting default xterm colors
- Reply-to: cygwin-xfree at cygwin dot com
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.
I've exported TERM=xterm-color
Some sites say that .Xdefaults have to be set but it means I have to set
the .Xdefaults for each and every user. I would want users to read
terminal settings from a global configuration file. It seems that there
is no such thing.
I've uncommented the necessary options from
/usr/lib/X11/app-defaults/Xterm-color so that I get a light foreground
over a dark background . In particular, the relevant section of
/usr/lib/X11/app-defaults/Xterm-color now looks like:
$ cat /usr/lib/X11/app-defaults/XTerm-color | more
<snipped_upper>
#include "XTerm"
*VT100*colorMode: on
*VT100*boldColors: on
*VT100*dynamicColors: on
! Uncomment this for "white" text on a dark background.
*VT100*foreground: gray90
*VT100*background: black
<snipped_lower>
Also, my TERM is:
$ echo $TERM
xterm-color
Thanks for any help.
Best Regards,
Carlo
--
Carlo Florendo
Astra Philippines Inc.
www.astra.ph