DOCUMENT ID:  1043-02

SYNOPSIS:     How to determine if app is running color/monochrome at runtime

OS RELEASE:   

PRODUCT:      Solaris x86

KEYWORDS:     color monochrome runtime XVIEW depth XV_DEPTH


DESCRIPTION:

In XVIEW programming how does one determine if the application is
running on color/monochrome at runtime?


SOLUTION:

You can get the depth of the frame using the Xview attribute XV_DEPTH. 
If the depth is 1, you are on a monochrome system.  Anything else is
either color or greyscale, and you can get the visual class using
XV_VISUAL_CLASS which would allow you to determine if it is color or
greyscale. 


DATE APPROVED: 09/15/95