AnsiConsoleOutput

Represents console output.

Represents console output.

Constructors

public AnsiConsoleOutput(TextWriter writer)

Initializes a new instance of the AnsiConsoleOutput class.

Parameters:

writer (TextWriter)
The output writer.

Properties

Height : int

Gets the output height.

IsTerminal : bool

Gets a value indicating whether or not the output is a terminal.

Width : int

Gets the output width.

Writer : TextWriter

Gets the TextWriter used to write to the output.

Methods

public void SetEncoding(Encoding encoding)

Sets the output encoding.

Parameters:

encoding (Encoding)
The encoding.