[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference unxa::cde

Title:CDE on Digital UNIXonment - CDE
Notice:CDE on Digital UNIX - for CDE on VMS, please see Note 1.3
Moderator:UNXA::SYSTEM
Created:Tue Nov 23 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:660
Total number of notes:2674

659.0. "How do I make DXterm background color like Dtterm?" by DAVIDF::FOX (David B. Fox -- DTN 285-2091) Thu Jun 05 1997 15:51

    I've set up some user actions that will connect telnet sessions to my
    routers under test.  I'm using DXterm for this.  Problem is that my
    resources set up a grey background that is hard for the eyes with white
    text.  I'd rather have the blue/grey that Dtterm has but I don't know
    what that is.
    
    The DXterm resource file has 
    
    DXterm.main.terminal.background:        #999999999999
    DXterm.background:      #999999999999
    
    set up now.  My questions then are:
    
    	- Can DXterm be set up to follow CDE selected color schemes like
    	  Dtterm?
    
    	- If not, how do I figure out the color value that I want?
    
    Thanks!
    		David
T.RTitleUserPersonal
Name
DateLines
659.1Some choices of colors and places to lookXAPPL::MASINICKBrian W. Masinick, DTN 381-0013Fri Jun 06 1997 11:0829
    If you want a darker background, you might try one of the darker grays
    from /usr/lib/X11/rgb.txt, such as:
    
     grep gray /usr/lib/X11/rgb.txt 
     47  79  79             dark slate gray
    105 105 105             dim gray
    112 128 144             slate gray
    119 136 153             light slate gray
    190 190 190             gray
    
    ...
     64  64  64             gray25
    127 127 127             gray50
    169 169 169             dark gray
    
    blues are also an option:
    
     25  25 112             midnight blue
      0   0 128             navy blue
    0     0 139             dark blue
    
    Finally, if you want the exact color that CDE uses, look at the
    palettes in /usr/dt/palettes.  Default.dp has the hex color values for
    the colors that you *might* be interested in, I think.
    
    I hope this gives you enough to play with.  :-)
    
    Brian    6-JUN-1997 10:07:55
    
659.2A little more about RGB colorsAOSG::MASINICKBrian W. Masinick, DTN 381-0013Fri Jun 06 1997 11:409
    One additional comment: if you want to MIX your own colors, the numbers
    represent RED GREEN BLUE values.  #RRRRGGGGBBBB, #RRGGBB, a named color
    from rgb.txt, or rgb:/rr/gg/bb are formats acceptable, where R G and B
    are replaced by hex digits.  The numbers in my previous reply next to
    the colors are the decimal values of the colors named.  You can convert
    those to hex to get the same color, or vary them to suit your tastes.
    
    Hope this helps.
    Brian
659.3How do the names/numbers relate to resources?DAVIDF::FOXDavid B. Fox -- DTN 285-2091Fri Jun 06 1997 11:4113
    Brian,
    	That's great.  Question though... how do those numbers, or names, 
    relate to the fields below?
    
    DXterm.main.terminal.background:        #999999999999
    DXterm.background:      #999999999999
    
    Can I substitute "dark slate gray" for "#999999999999?" or do I have to
    do something with the numbers to make them fit in a 12 character field?
    004700790079 or 002f00310031?
    
    	Thanks!
    		David
659.4One other thing...DAVIDF::FOXDavid B. Fox -- DTN 285-2091Fri Jun 06 1997 11:428
    Brian,
    
    Lastly, if I change the colors in CDE with the color tool, is it
    possible to set up DXterm to track the color change like Dtterm can?
    
    	Thanks again!
    
    	David