UsageWriterWriteColor Method

Writes a string with virtual terminal sequences only if color is enabled.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 3.1.1
C#
protected void WriteColor(
	string color
)

Parameters

color  String
The string containing the color formatting.

Remarks

The color should contain one or more virtual terminal sequences from the TextFormat class, or another virtual terminal sequence. It should not contain any other characters.

Nothing is written if the UseColor property is .

See Also