VirtualTerminal Class

Provides helper methods for console Virtual Terminal sequences.

Definition

Namespace: Ookii.CommandLine.Terminal
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public static class VirtualTerminal
Inheritance
Object    VirtualTerminal

Remarks

Virtual terminal sequences are used to add color to various aspects of the usage help, if enabled by the UsageWriter class.

Methods

EnableColor Enables color support using virtual terminal sequences for the console attached to the specified stream.
EnableVirtualTerminalSequences Enables virtual terminal sequences for the console attached to the specified stream.
WriteLineErrorFormatted Writes a line to the standard error stream which, if virtual terminal sequences are supported, will use the specified formatting.
WriteLineFormatted Writes a line to the standard output stream which, if virtual terminal sequences are supported, will use the specified formatting.

Fields

Escape The escape character that begins all Virtual Terminal sequences.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also