Skip to content
ConsoleMonster
Class

TextTerminalWriter

ConsoleMonster.Output

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 required
The text writer; it is never disposed here.

Methods

public void Dispose() #

Does nothing: the caller owns the text writer.

public void Flush() #

Flushes buffered text to the device.

public void Write(string text) #

Writes text. Implementations may buffer until ITerminalWriter.Flush.

Parameters

text string required
Text, possibly containing VT sequences.

Properties

public bool IsConsole { get; } #

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