WNDC

Default colors

 

USupported on Unix
VSupported on OpenVMS

 

The WNDC environment variable enables color and defines the default color palette for the windowing API and UI Toolkit applications.

palette1, palette2, …, palette16

Each color palette entry (palette1, palette2, and so forth) defines the foreground (character) color and the background color in the form foreground/background, where foreground and background are single characters that each signify a color. These characters, which are not case sensitive, are as follows:

D = Dark (black)

B = Blue

G = Green

C = Cyan

R = Red

M = Magenta

Y = Yellow

W = White

For example, D/W, W/D, B/W, B/Y, R/W.

Color palette entries are separated by commas, and you can skip a color palette entry by placing consecutive commas in the string. If you omit a palette entry at the end of the string, you don’t need to mark its place with a comma. Any omitted palette entries default to the colors for palette entry one, and if palette entry one is not specified, it defaults to white characters on a black background (W/D). The background color for palette entry number one is the default background color for the entire screen.

Note

If WNDC is set, Synergy DBL attempts to do color processing. If you’re not using a color terminal, don’t set WNDC.

On Unix, you must also add the following codes to the termcap file entry for the terminal you intend to use, where b indicates background, f indicates foreground, and B, C, D, G, M, R, W, and Y indicate the colors listed above:

bB=color definition sequence for blue background

bC=color definition sequence for cyan background

bD=color definition sequence for black background

bG=color definition sequence for green background

bM=color definition sequence for magenta background

bR=color definition sequence for red background

bW=color definition sequence for white background

bY=color definition sequence for yellow background

fB=color definition sequence for blue foreground

fC=color definition sequence for cyan foreground

fD=color definition sequence for black foreground

fG=color definition sequence for green foreground

fM=color definition sequence for magenta foreground

fR=color definition sequence for red foreground

fW=color definition sequence for white foreground

fY=color definition sequence for yellow foreground

To find out the escape sequence for each color, refer to the manual for the terminal you’re using.

On OpenVMS, the WNDC logical must exist for color to be enabled.

The screen is updated using ANSI color escape sequences.

The WNDC environment variable is not used on Windows. Instead, a default color palette and a default set of Synergy color definitions are loaded into memory when the Synergy runtime starts. See Colors and the color palette for more information.

The environment.

Runtime

Unix

The example below defines palette entry one as green characters on a blue background, entry two as red characters on a yellow background, entry four as black characters on a white background, and all other palette entries as green characters on a blue background (like palette entry one).

WNDC=g/b,r/y,,d/w  ;export WNDC

The example below defines palette entry three as white characters on blue, palette entry five as black characters on red, and all other palette entries as white characters on black.

WNDC=,,w/b,,d/r   ;export WNDC

The example below enables color but initializes all palette entries to white on black.

WNDC=,  ;export WNDC

The example below defines palette entry one as green characters on a blue background, entry two as red characters on a yellow background, entry four as black characters on a white background, and all other palette entries as green characters on a blue background (like palette entry one).

$ DEFINE WNDC "G/B,R/Y,,D/W"

The example below defines palette entry three as white characters on blue, palette entry five as black characters on red, and all other palette entries as white characters on black.

$ DEFINE WNDC ",,W/B,,D/R"

The example below enables color but initializes all palette entries to white on black.

$ DEFINE WNDC ","