NAME ds_server_init - store a property in the X11 server to reduce colormap flashing within the DeskSet applications SYNOPSIS ds_server_init [ -f filename ] [ -a ] AVAILABILITY Available with the OpenWindows environment. DESCRIPTION ds_server_init is a utility which stores a property on the server representing the set of colors to be designated as the DeskSet colors. This utility reduces colormap flashing within applications requiring colors by restricting applica- tions to allocate colors only from the DeskSet colors. As an application requires a color, a best fit color algorithm is performed upon the DeskSet colors to return the closest match from the DeskSet color list, thus avoiding to allocate duplicate colors that vary slightly. The property is stored as a character string under the name _SUN_DESKSET_COLORS where the property string consists of a series of color strings in the hexadecimal form of color specification. The DeskSet colors are read in from the con- figurable file $OPENWINHOME/share/xnews/client/ds_server_init/ds_colors.txt. If this file does not exist, ds_server_init will default to a set of its own back-up colors to store in the property. ds_server_init will allow up to 240 colors to be set on the property. There are four additional colors (if they exist) that are added to the DeskSet color list besides the colors specified in the color file. These colors are stored in the user's $HOME/.Xdefaults file and are 1) Window.ForegroundColor, 2) Window.BackgroundColor, 3) OpenWindows.WorkspaceColor, and 4) OpenWindows.WindowColor. Currently the only applications using this property are the DeskSet tools, but this concept can work on any application wishing to share colors with the tools. INSTALLATION ds_server_init is invoked when the X11 server is started. OPTIONS -f filename Indicates the filename containing the colors. $OPENWINHOME/share/xnews/client/ds_server_init/ds_colors.txt is the default file. -a This will force the allocation of the DeskSet colors at the time ds_server_init is invoked. By default, ds_server_init will allocate each color on an as-needed basis controlled from within the applications. FILES $OPENWINHOME/share/xnews/client/ds_server_init/ds_colors.txt This file contains the set of DeskSet colors in ASCII where the ds_server_init utility reads the colors from. $HOME/.Xdefaults NOTES The OpenWindows environment may no longer be supported in a future release. You may want to migrate to CDE, the Common Desktop Environment.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |