home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sun / apps / 1678 < prev    next >
Encoding:
Text File  |  1992-08-21  |  3.0 KB  |  80 lines

  1. Newsgroups: comp.sys.sun.apps
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!uranus.ced.utah.edu!bryant
  3. From: bryant@ced.utah.edu (Bryant Eastham,MEB 3116,581-5353)
  4. Subject: Re: background/foreground colors
  5. Message-ID: <1992Aug21.171543.18627@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Reply-To: bryant@ced.utah.edu
  8. Organization: Center for Engineering Design
  9. References: <1992Aug20.132200.7504@samba.oit.unc.edu>
  10. Date: Fri, 21 Aug 92 17:15:43 GMT
  11. Lines: 67
  12.  
  13. In article 7504@samba.oit.unc.edu, cptully@med.unc.edu (Christopher P. Tully,Pathology,62679) writes:
  14. >>In article <1992Aug18.033357.9923@fcom.cc.utah.edu> bryant@ced.utah.edu writes:
  15. >>:I give up! After an hour and a half I cannot get cmdtool to set my background
  16. >>:to black and my foreground to yellow. I want this to be through my .Xdefaults
  17. >>:file, not the command line.
  18. >>
  19. >>:Does anyone know how to JUST get cmdtool to change colors?
  20. >>:
  21. >>:I tried the obvious,
  22. >>:
  23. >>:   cmdtool.window.color.background: black
  24. >>:   cmdtool.window.color.foreground: yellow
  25. >>
  26. >
  27. >
  28. >OK, you've tried the hard way, now try the easy way:
  29. >
  30. >1) in your current (wrong color) cmdtool type:
  31. >
  32. >cmdtool -bg black -fg yellow &
  33. >
  34. >2) now quit the cmdtool that has the wrong color scheme.
  35. >3) if you have customized your openwin-menu file add the "-bg black 
  36. >   -fg yellow" to your cmdtool statrup line.
  37. >4) SAVEWORKSPACE!!! - this puts the color info in the right place.  
  38. >
  39. >Or, if you don't like this approach, edit your .openwin-init file to 
  40. >look like this:
  41. >
  42. >toolwait cmdtool -Wp 387 0 -Ws 593 869 -WP 161 833 -Wi -fg yellow -bg black 
  43. >
  44. >
  45.  
  46. It seems that a number of people misunderstood the question. I believe
  47. that I mentioned NOT wanting to use command-line arguments because there
  48. is no CONSISTENT way to have them work. The problem is that if I use
  49. an alias, then ".openwin-menu" lines have problems (C Shell vs Bourne
  50. Shell) causing me to have to keep TWO FILES consistent:
  51.  
  52.   1) .openwin-menu  - for when I use a menu.
  53.   2) alias file - for when I type it on the command line.
  54.  
  55. This also requires modifying files for EVERY USER OF THE SYSTEM individually,
  56. since we do not (I don't think you can) share common sections of
  57. an Openwindows Menu configuration file.
  58.  
  59. This is not acceptable. The way that applications should get defaults is
  60. through the RESOURCE SYSTEM. This is the "standard" way. If the application
  61. fails to use it then it is BROKEN and should be FIXED. Considering that
  62. there are so many applications (XTerm for one) that DO work the right
  63. way, it doesn't seem a hard thing to ask.
  64.  
  65. I have also not heard any responses on why changing the window foreground color
  66. should change menu text, while changing the background color does NOT change
  67. the menu background. According to this, if I execute:
  68.  
  69.     cmdtool -bg black -fg gray
  70.  
  71. I get a very nice black-background gray-text command tool, but with completely
  72. WORTHLESS INVISIBLE MENU ITEMS! Try it!
  73.  
  74. Bryant Eastham
  75. Programmer/System Administrator
  76. Center for Engineering Design
  77. University of Utah
  78. bryant@ced.utah.edu
  79.  
  80.