open-src/app/cmap_alloc/sun-src/cmap_alloc.1
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Thu, 18 Feb 2010 16:03:08 -0800
changeset 907 3c35d611cdaa
parent 550 3b62053c3b77
child 919 425233ae7236
permissions -rw-r--r--
6927784 Remove SCCS ident tags from X gate

.\" Copyright 1994 Sun Microsystems, Inc.  All rights reserved.
.\" Use subject to license terms.
.\"
.\" Permission is hereby granted, free of charge, to any person obtaining a
.\" copy of this software and associated documentation files (the
.\" "Software"), to deal in the Software without restriction, including
.\" without limitation the rights to use, copy, modify, merge, publish,
.\" distribute, and/or sell copies of the Software, and to permit persons
.\" to whom the Software is furnished to do so, provided that the above
.\" copyright notice(s) and this permission notice appear in all copies of
.\" the Software and that both the above copyright notice(s) and this
.\" permission notice appear in supporting documentation.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
.\" OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
.\" HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
.\" INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.\" Except as contained in this notice, the name of a copyright holder
.\" shall not be used in advertising or otherwise to promote the sale, use
.\" or other dealings in this Software without prior written authorization
.\" of the copyright holder.
.TH cmap_alloc 1 "18 March 1992"
.IX cmap_alloc "" "\f3cmap_alloc\f1(1) \(em colormap utility" ""
.IX "color" "defa" "color" "default colormap allocation \(em \f3cmap_alloc\f1(1)" ""
.SH NAME
cmap_alloc \- allocate default colormaps for non-default visuals
.SH SYNOPSIS
.B cmap_alloc
[
.B \-display
.I display:n.screen
] [
.B \-force
] [
.B \-allscreens
]
[
.BI \-depth \ n
] [
.B \-visual
.I class
] [
.B \-verbose
] [
.B
\-help
]
.SH DESCRIPTION
.LP
.B cmap_alloc
creates empty colormaps for non-default dynamic visuals that are suitable
for use as default colormaps.  An X11 server has only one default colormap,
and it is associated with the default visual.  Clients that need to access
non-default visuals have to create their own colormaps.  This can lead
to gratuitous colormap flashing if a lot of applications are running
in non-default visuals.  
.B cmap_alloc
will create colormaps that can be used by such applications as the default
colormap for the given visual.
Once the colormap has been created for a given visual, it will place
the colormap's XID into the 
.SM RGB_DEFAULT_MAP
property on the root window of the display.  Clients that need to access
non-default dynamic visuals should search this property using 
.SM XGetRBGColormaps()
for a suitable colormap to use. 
.SH OPTIONS
.IP "\f3\-display \fIdisplay:n.screen\f1" 1i
Indicates which X11 server to use.  The default is to use the value 
set in the
.SM DISPLAY
environment variable.
.IP "\f3\-force\f1" 1i
Create a colormap even if a suitable colormap is already listed in the 
.SM RGB_DEFAULT_MAP 
property.
.IP "\f3\-allscreens\f1" 1i
Create default colormaps for all screens of the display.  Without this
option, colormaps will only be created for the default screen.
.IP "\f3\-depth \fIn\f1" 1i
Create default colormaps only for those visuals that have depth
.I n.
The default is to create colormaps for visuals of all depths
.IP "\f3\-visual \fIclass\f1" 1i
Create default colormaps only for those visuals that are of class
.I class.
Where 
.I class
is one of the following:
.SM GrayScale, PsuedoColor, DirectColor
\.  The default is to create colormaps for all visual classes.
.IP "\f3\-verbose\f1" 1i
Print out diagnostic messages useful for debugging.
.IP "\f3\-help\f1" 1i
Print out a short usage message and exit.
.SH "SEE ALSO"
.BR xstdcmap (1) ,
.BR cmap_compact (1)
.sp
.SH DIAGNOSTICS
.TP 20n
\f3can't open display ...\f1
Error in connecting to the X11 server.  Check 
.SM DISPLAY
environment variable.
.TP 20n
\f3unknown depth\f1
Invalid depth specified for the \f3\-depth\f1 command line option
.TP 20n
\f3unknown visual class\f1
Invalid visual class specified for the \f3\-visual\f1
command line option