Table of Contents

Name

xcrt_color - Xcrt color table information

Synopsis

x_crt_color Xcrt color table information.

Description

This manual page describes the configuration table used by crt(1) and perhaps other programs to obtain color and font information.

Color Management Keywords

Colors may be specified by using a color name, an RGB hex value, or an RGBi scaler value.

Color names are looked up in rgb.txt in accordance with standard X11 rules.

RGB hex values may be specified in standard X11 format as "RGB:rr/gg/bb" where rr = the red color spec, gg = the green color spec, and bb = the blue color spec. Up to four hex digits may be used for each color, however, the precision of the color specification is dependent on the color depth specified to the X server so you may not get exactly what you asked for.

RGBi values have the advantange that they are color depth independent and gamma corrected. The format is:

"RGBi:<red>/<green>/<blue>"

where each field is a scaler between 0.0 and 1.0.

For example white is:

"RGBi:1.000/1.000/1.000".

General

COLback

the display background color.
COLtext

The color of CrtText table records.
COLerror

error color
COLtouch

The color given to the icon or dcpnt that the mouse is on.
COLoutline

This is used by m_crt(1) . It is the color of the outline which is drawn around an object when it is selected for assignment to the control area.
COLborder

The window border color.

Display / Control points

Display / Control points are records in the CrtDCpnt table.
COLdc_ok

The status of the datapoint associated with this record is ok.
COLdc_lim

The datapoint associated with this record is at a limit.
COLdc_io

There is an I/O error on datapoint associated with this record.

Icon colors

CrtICpnt records usually (not always) have a datapoint associated with them to control the icon color. The colors defined here are used as the colors for most (but not all) of the icons. The color control datapoint is the ICONDISP.Ilabel and ICONDISP.IrefName. This datapoint has a range of 0.0 - 3.0. The keys given here correspond to the color that will be used for each possible state.
COLic_0

icon state 0 - the color is usually set to some shade of blue.
COLic_1

icon state 1 - the color is usually set to some shade of green.
COLic_2

icon state 2 - the color is usually set to some shade of yellow.
COLic_3

icon state 3 - the color is usually set to some shade of red.

Beamline Icon colors

The colors in this section are used for CrtICpnt records with the icon type set to bline. These icons usually (not always) have a datapoint associated with them to control the icon color.

Usually only the 1st two values are used.

COLbl_i

icon state 0 - the color is usually set to some shade of blue.
COLbl_r

icon state 1 - the color is usually set to some shade of green.
COLbl_a

icon state 2 - the color is usually set to some shade of yellow.
COLbl_e

icon state 3 - the color is usually set to some shade of red.

Misc Icon colors

COLline
The color for an icon of type line
COLgline
The color for an icon of type gline
COLwall
The color for an icon of type wall
COLbadp
This is color given to an icon which has NULL pointers in the database.
COLshort
Color for a shorting rod icon

Font Management Keywords

crt(1) is capable of using up to 10 different fonts. Two of the fonts are always used. The rest may be defined for user preferences. The FontKey field in the various crt display tables is used to access the fonts.
FONTdef

This is the default font. If this keyword is not present in the configuration file the font defaults to fixed.
FONTbig

This is the font used for the gvm icon type. crt(1) defaults it as: -b&h-lucidabright-demibold-r-normal-*-*-200-100-100-*-*-*-* if it is not defined in the config file. Other programs may default it differently.
FONTuser1

This is a user definable font. If this keyword is not present in the configuration file the font defaults to fixed.
FONTuser2

This is a user definable font. If this keyword is not present in the configuration file the font defaults to fixed.
FONTuser3

This is a user definable font. If this keyword is not present in the configuration file the font defaults to fixed.
FONTuser4

This is a user definable font. If this keyword is not present in the configuration file the font defaults to fixed.
FONTuser5

This is a user definable font. If this keyword is not present in the configuration file the font defaults to fixed.
FONTuser6

This is a user definable font. If this keyword is not present in the configuration file the font defaults to fixed.
FONTuser7

This is a user definable font. If this keyword is not present in the configuration file the font defaults to fixed.
FONTuser8

This is a user definable font. If this keyword is not present in the configuration file the font defaults to fixed.

Examples

#
# Xcrt color configuration table
#
# when using standard X windows color names used you must
# put an _ in places where whitespace appears in the color name
#
# for example : blue violet
# becomes : blue_violet
#
# general

COLback black # background
COLtext     green # text
COLerror red # error
COLtouch white # touch outline
COLborder white # window border
# DCpnt field colors

COLdc_ok green # ok
COLdc_lim red # at limit
COLdc_io blue_violet # i/o error
# icons

COLic_0     CornflowerBlue # state 0
COLic_1     green # state 1
COLic_2     yellow # state 2
COLic_3     red # state 3
# misc icons

COLline green # line icon
COLgline red # guide line
COLwall brown # wall icon
COLbadp green # badp icon pointer
COLshort blue_violet #
# beam line icon

COLbl_i blue #
COLbl_r MediumSeaGreen #
COLbl_a yellow #
COLbl_e red #
#
# define 2 user fonts
#
FONTuser1 -adobe-courier-medium-i-normal--12-120-75-75-m-*-iso8859-1
FONTuser2 -adobe-courier-medium-r-normal-*-34-240-100-100-m-*-iso8859-1

See Also

crt(1) , ts(1) , and gvm(1)

Manual Page Revision

$Id: xcrt_color.5,v 1.3 2007/08/30 17:32:29 kitchen Exp $


Table of Contents