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

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

366.0. "Color or B/W without X calls ??" by LDP::GABRIEL (Thank You Very Little) Thu Mar 09 1989 10:42

    A CMP has an application that needs to know what kind of monitor
    (color or B/W) that it is running on.  The application is done
    in ReGIS and therefore does not make any calls to XLIB.  Is
    there a way to determine this WITHOUT making any X calls ??
    
    How does the DECwindows server determine this ????
    
    I posted this note in the VMS notesfile, and this is the response
    I got:
    
    
Basically, you can't tell from the hardware what kind of monitor is
attached.  You can make some guesses some of the time (e.g. if it's
an unaccelerated VS2000, then it can't be a colour monitor).

If you are running DECwindows, then I believe that there's n
enquiry routine which will tell you this information (DECwindows
gets the information in part from the hardware, and in part from
user setup information.

    
    
    Thanks for any info....
    
    
    +Joe Gabriel+
    LDP::GABRIEL
    

T.RTitleUserPersonal
Name
DateLines
366.1DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Fri Mar 10 1989 21:5516
    You have to make an xlib call or two.  It's not too hard to get it to
    work 99.9% of the time, but it might be a little harder to get the last
    .1%.  That last .1% involves cases where I don't know exactly what goes
    on, and probably hypothetical hardware and software.  (In particular,
    I am thinking of a server which has multiple visuals, some color and
    some B/W where the terminal emulator chooses a visual which is not the
    default.)
    
    In the default case, what you would need to do is to use XOpenDisplay
    to make a connection to the server, then XGetVisualInfo to find the
    characteristics of the default visual.
    
    Burns
    
    	

366.2VWSENG::KLEINSORGEToys 'R' UsSun Mar 12 1989 22:0414
    
    Since it's a ReGIS application does it really need to know the monitor
    type?  With the proper use of the commands to set the colormap up
    you should be able to write a program that works on both color and
    intensity systems (that is, first send the monochromatic command
    and follow it by the alternate color commands) if DECterm's logic
    is right, this should work like magic.
    
    If what you really mean is to find out if the workstation is a
    *bitonal* (frame buffer) and *not* if the monitor is monochrome...
    then I don't think that you can do this without making some kind
    of Xlib calls or looking at server logical names (on VMS).