[This is preliminary documentation and is subject to change.]

Changes the definition of a color-pair.

Namespace:  CursesSharp
Assembly:  CursesSharp (in CursesSharp.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static void InitPair(
	short color,
	short fg,
	short bg
)
Visual Basic (Declaration)
Public Shared Sub InitPair ( _
	color As Short, _
	fg As Short, _
	bg As Short _
)
Visual C++
public:
static void InitPair(
	short color, 
	short fg, 
	short bg
)

Parameters

color
Type: System..::.Int16
Number of the color-pair to be changed.
fg
Type: System..::.Int16
Foreground color number.
bg
Type: System..::.Int16
Background color number.

Remarks

If the color-pair was previously initialized, the screen is refreshed and all occurences of that color-pair are changed to the new definition.

For portable applications the value of color must be between 1 and ColorPairs - 1, and the value of fg and bg must be between 0 and Colors.

See Also