Solaris Handbook for Sun Frame Buffers

Changing the Default Visual (-deflinear, -defoverlay)

By default, the 8-bit PseudoColor underlay visual is the default visual of the screen. The default visual can be changed to either a linear underlay visual or an overlay visual through SUNWifb_config.

  1. To set the default visual to be a linear visual, enter the SUNWifb_config command as follows:


    SUNWifb_config -deflinear true

  1. To set the default visual to be an overlay visual, enter the SUNWifb_config command as follows:


    SUNWifb_config -defoverlay true


    Caution - Caution -

    Since there is no linear overlay visual, the user should not specify both "-deflinear true" and "-defoverlay true" simultaneously, or the result will be undefined.



    Caution - Caution -

    Note that the visual ordering options (overlayorder and linearorder) are independent of the default visual options (defoverlay and deflinear). Moving the overlay visual groups, for example, to the front does not automatically make it a default visual. Some applications make this assumption and hence receive a "BADMATCH" X error when they try to match the colormap created by the default visual and the first 8-bit PseudoColor visual they can find.