XInstallColormap, XUninstallColormap, XListInstalledColormaps − control colormaps


int XInstallColormap(Display *display, Colormap colormap);

int XUninstallColormap(Display *display, Colormap colormap);

Colormap *XListInstalledColormaps(Display *display, Window w, int *num_return);



Specifies the colormap.


Specifies the connection to the X server.


Returns the number of currently installed colormaps.


Specifies the window that determines the screen.


The XInstallColormap function installs the specified colormap for its associated screen. All windows associated with this colormap immediately display with true colors. You associated the windows with this colormap when you created them by calling XCreateWindow, XCreateSimpleWindow, XChangeWindowAttributes, or XSetWindowColormap.

If the specified colormap is not already an installed colormap, the X server generates a ColormapNotify event on each window that has that colormap. In addition, for every other colormap that is installed as a result of a call to XInstallColormap, the X server generates a ColormapNotify event on each window that has that colormap.

XInstallColormap can generate a BadColor error.

The XUninstallColormap function removes the specified colormap from the required list for its screen. As a result, the specified colormap might be uninstalled, and the X server might implicitly install or uninstall additional colormaps. Which colormaps get installed or uninstalled is server dependent except that the required list must remain installed.

If the specified colormap becomes uninstalled, the X server generates a ColormapNotify event on each window that has that colormap. In addition, for every other colormap that is installed or uninstalled as a result of a call to XUninstallColormap, the X server generates a ColormapNotify event on each window that has that colormap.

XUninstallColormap can generate a BadColor error.

The XListInstalledColormaps function returns a list of the currently installed colormaps for the screen of the specified window. The order of the colormaps in the list is not significant and is no explicit indication of the required list. When the allocated list is no longer needed, free it by using XFree.

XListInstalledColormaps can generate a BadWindow error.



A value for a Colormap argument does not name a defined Colormap.


A value for a Window argument does not name a defined Window.


XChangeWindowAttributes(3), XCreateColormap(3), XCreateWindow(3), XFree(3)
Xlib − C Language X Interface

More Linux Commands

aio_suspend(3) - wait for asynchronous I/O operation or time
The aio_suspend() function suspends the calling thread until one of the following occurs: * One or more of the asynchronous I/O requests in the list aiocb_list

unload(n) - Unload machine code (Local - Linux man page)....
This command tries to unload shared libraries previously loaded with load from the applications address space. fileName is the name of the file containing the l

filefuncs(3am) provide some file related functionality to ga
The filefuncs extension adds several functions that provide access to file-related facilities. chdir() The chdir() function is a direct hook to the chdir(2) sys

Tk_PostscriptFontName(3) - accessor functions for fonts.....
Given a tkfont, Tk_FontId returns the token that should be selected into an XGCValues structure in order to construct a graphics context that can be used to dra

Tk_InitConsoleChannels(3) - Install the console channels as
Tk_InitConsoleChannels is invoked to create a set of console channels and install them as the standard channels. All I/O on these channels will be discarded unt

snapperd(8) DBus daemon for snapper - Linux manual page.....
Snapperd is a DBus daemon for snapper and not for direct use by the user. HOMEPAGE http://snapper.io/ AUTHORS Arvin Schnell <aschnell@suse.de> SEE ALSO snapper(

sshd_config(5) - OpenSSH SSH daemon configuration file......
sshd(8) reads configuration data from /etc/ssh/sshd_config (or the file specified with -f on the command line). The file contains keyword-argument pairs, one pe

tk(n) - Manipulate Tk internal state - Linux manual page....
The tk command provides access to miscellaneous elements of Tks internal state. Most of the information manipulated by this command pertains to the application

terminfo(5) - terminal capability data base - Linux man page
Terminfo is a data base describing terminals, used by screen-oriented programs such as nvi(1), rogue(1) and libraries such as ncurses(3NCURSES). Terminfo descri

set_menu_format(3menu) - set and get menu sizes (Man Page)
The function set_menu_format sets the maximum display size of the given menu. If this size is too small to display all menu items, the menu will be made scrolla

auto_mkindex(n) - standard library of Tcl procedures........
Tcl includes a library of Tcl procedures for commonly-needed functions. The procedures defined in the Tcl library are generic ones suitable for use by many diff

IO::ScalarArray(3pm) - IO:: interface for reading/writing an
This class is part of the IO::Stringy distribution; see IO::Stringy for change log and general information. The IO::ScalarArray class implements objects which b

We can't live, work or learn in freedom unless the software we use is free.