Skip to content
ConsoleMonster

API Reference

Class

TextTerminalWriter

Namespace ConsoleMonster.Output
Assembly ConsoleMonster
Implements
ITerminalWriter IDisposable
Modifiers sealed

An ITerminalWriter over a TextWriter the caller owns.

Inheritance

  • Object
  • TextTerminalWriter

Constructors

public TextTerminalWriter(TextWriter writer) #

Creates the writer.

Parameters

writer System.IO.TextWriter requiredposition: 0
The text writer; it is never disposed here.

Methods

public Void Dispose() #
Returns: Void

Does nothing: the caller owns the text writer.

public Void Flush() #
Returns: Void

Flushes buffered text to the device.

public Void Write(String text) #
Returns: Void

Writes text. Implementations may buffer until ITerminalWriter.Flush.

Parameters

text System.String requiredposition: 0
Text, possibly containing VT sequences.

Properties

public Boolean IsConsole { get; } #

Whether this writer targets a real console handle (as opposed to a file, pipe or buffer).