home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.apps
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!uranus.ced.utah.edu!bryant
- From: bryant@ced.utah.edu (Bryant Eastham,MEB 3116,581-5353)
- Subject: Re: background/foreground colors
- Message-ID: <1992Aug21.171543.18627@fcom.cc.utah.edu>
- Sender: news@fcom.cc.utah.edu
- Reply-To: bryant@ced.utah.edu
- Organization: Center for Engineering Design
- References: <1992Aug20.132200.7504@samba.oit.unc.edu>
- Date: Fri, 21 Aug 92 17:15:43 GMT
- Lines: 67
-
- In article 7504@samba.oit.unc.edu, cptully@med.unc.edu (Christopher P. Tully,Pathology,62679) writes:
- >>In article <1992Aug18.033357.9923@fcom.cc.utah.edu> bryant@ced.utah.edu writes:
- >>:I give up! After an hour and a half I cannot get cmdtool to set my background
- >>:to black and my foreground to yellow. I want this to be through my .Xdefaults
- >>:file, not the command line.
- >>
- >>:Does anyone know how to JUST get cmdtool to change colors?
- >>:
- >>:I tried the obvious,
- >>:
- >>: cmdtool.window.color.background: black
- >>: cmdtool.window.color.foreground: yellow
- >>
- >
- >
- >OK, you've tried the hard way, now try the easy way:
- >
- >1) in your current (wrong color) cmdtool type:
- >
- >cmdtool -bg black -fg yellow &
- >
- >2) now quit the cmdtool that has the wrong color scheme.
- >3) if you have customized your openwin-menu file add the "-bg black
- > -fg yellow" to your cmdtool statrup line.
- >4) SAVEWORKSPACE!!! - this puts the color info in the right place.
- >
- >Or, if you don't like this approach, edit your .openwin-init file to
- >look like this:
- >
- >toolwait cmdtool -Wp 387 0 -Ws 593 869 -WP 161 833 -Wi -fg yellow -bg black
- >
- >
-
- It seems that a number of people misunderstood the question. I believe
- that I mentioned NOT wanting to use command-line arguments because there
- is no CONSISTENT way to have them work. The problem is that if I use
- an alias, then ".openwin-menu" lines have problems (C Shell vs Bourne
- Shell) causing me to have to keep TWO FILES consistent:
-
- 1) .openwin-menu - for when I use a menu.
- 2) alias file - for when I type it on the command line.
-
- This also requires modifying files for EVERY USER OF THE SYSTEM individually,
- since we do not (I don't think you can) share common sections of
- an Openwindows Menu configuration file.
-
- This is not acceptable. The way that applications should get defaults is
- through the RESOURCE SYSTEM. This is the "standard" way. If the application
- fails to use it then it is BROKEN and should be FIXED. Considering that
- there are so many applications (XTerm for one) that DO work the right
- way, it doesn't seem a hard thing to ask.
-
- I have also not heard any responses on why changing the window foreground color
- should change menu text, while changing the background color does NOT change
- the menu background. According to this, if I execute:
-
- cmdtool -bg black -fg gray
-
- I get a very nice black-background gray-text command tool, but with completely
- WORTHLESS INVISIBLE MENU ITEMS! Try it!
-
- Bryant Eastham
- Programmer/System Administrator
- Center for Engineering Design
- University of Utah
- bryant@ced.utah.edu
-
-