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

  1. Newsgroups: comp.sys.sun.apps
  2. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!decwrl!csus.edu!netcom.com!kemnitz
  3. From: kemnitz@netcom.com (Greg Kemnitz)
  4. Subject: Re: background/foreground colors
  5. Message-ID: <94_n53p.kemnitz@netcom.com>
  6. Date: Fri, 21 Aug 92 21:26:49 GMT
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <1992Aug20.132200.7504@samba.oit.unc.edu> <1992Aug21.171543.18627@fcom.cc.utah.edu>
  9. Lines: 98
  10.  
  11. In article <1992Aug21.171543.18627@fcom.cc.utah.edu> bryant@ced.utah.edu writes:
  12. =
  13. =It seems that a number of people misunderstood the question. I believe
  14. =that I mentioned NOT wanting to use command-line arguments because there
  15. =is no CONSISTENT way to have them work. The problem is that if I use
  16. =an alias, then ".openwin-menu" lines have problems (C Shell vs Bourne
  17. =Shell) causing me to have to keep TWO FILES consistent:
  18. =
  19. =  1) .openwin-menu  - for when I use a menu.
  20. =  2) alias file - for when I type it on the command line.
  21. =
  22. =This also requires modifying files for EVERY USER OF THE SYSTEM individually,
  23. =since we do not (I don't think you can) share common sections of
  24. =an Openwindows Menu configuration file.
  25. =
  26. =This is not acceptable. The way that applications should get defaults is
  27. =through the RESOURCE SYSTEM. This is the "standard" way. If the application
  28. =fails to use it then it is BROKEN and should be FIXED. Considering that
  29. =there are so many applications (XTerm for one) that DO work the right
  30. =way, it doesn't seem a hard thing to ask.
  31. =
  32. =I have also not heard any responses on why changing the window foreground color
  33. =should change menu text, while changing the background color does NOT change
  34. =the menu background. According to this, if I execute:
  35. =
  36. =    cmdtool -bg black -fg gray
  37. =
  38. =I get a very nice black-background gray-text command tool, but with completely
  39. =WORTHLESS INVISIBLE MENU ITEMS! Try it!
  40. =
  41. =Bryant Eastham
  42. =Programmer/System Administrator
  43. =Center for Engineering Design
  44. =University of Utah
  45. =bryant@ced.utah.edu
  46. =
  47.  
  48.  
  49. This is a simple man page reading.
  50.  
  51. First 'man cmdtool', find out cmdtool is a xview product, not a
  52. Mit X product and give me directio to xview.
  53.  
  54. Then 'man xview', find out,
  55.  
  56.      Argument(s):   -Wf, or -foreground_color
  57.      Type:          integer integer integer
  58.      Resource Name: Window.Color.Foreground
  59.      Default:       0 0 0
  60.      Description    See Description in -Wb below.
  61.  
  62.      Argument(s):   -Wb, or -background
  63.      Type:          integer integer integer
  64.      Resource Name: Window.Color.Background
  65.      Default:       255 255 255
  66.      Description:   These options allow the user to  specify  the
  67.                     foreground color (e.g., the color of the text
  68.                     in a textsw), or the background color  (e.g.,
  69.                     the  color that the text is painted on) of an
  70.                     application.   The  three  values  should  be
  71.                     integers between 0 and 255.  They specify the
  72.                     amount of red, green and blue that is in  the
  73.                     color.    See  -fg and -bg below for informa-
  74.                     tion on similar functions.
  75.      Example:       cmdtool -Wf 0 0 255 -Wb 100 100 100
  76.                     (would come up with a blue foreground, with a
  77.                     gray background)
  78.  
  79.      Argument(s):   -fg, or -foreground
  80.      Type:          string  (color  name,  or  hexidecimal  color
  81.                     specification)
  82.      Resource Name: Window.Color.Foreground
  83.      Default:       black
  84.      Description:   See Description in -bg below.
  85.  
  86.      Argument(s):   -bg, or -background
  87.      Type:          string  (color  name,  or  hexidecimal  color
  88.                     specification)
  89.      Resource Name: Window.Color.Background
  90.      Default:       white
  91.      Description:   These options are similar to the -Wf and  -Wb
  92.                     options,  except that they take a color argu-
  93.                     ment in the form of a predefined  color  name
  94.                     (lavender,   grey,   goldenrod,   etc.)  from
  95.                     $OPENWINHOME/lib/rbg.txt,  or  a  hexidecimal
  96.                     representation.   The hexidecimal representa-
  97.                     tion is of the form pound sign  (#)  followed
  98.                     by the hexidecimal representation of the red,
  99.                     green and blue aspects of the color.
  100.      Examples:      cmdtool -fg blue -bg gray
  101.                     (comes up with a blue foreground, with a gray
  102.                     background)
  103.                     cmdtool -fg #d800ff -bg white
  104.                     (comes up with a purple  foreground,  with  a
  105.                     white background)
  106.  
  107. Now you should be able to figure out how to set up your resources.
  108.  
  109.