Skip to content
ConsoleMonster
Interface

ITerminalWriter

ConsoleMonster.Output

Namespace
ConsoleMonster.Output
Assembly
ConsoleMonster
Implements
IDisposable
Modifiers
abstract

The lowest output sink: turns already-encoded text (including VT sequences) into calls or bytes. On a real Windows console handle the text is written as UTF-16 through WriteConsoleW, so Unicode shows correctly whatever the code page; redirected output is written as UTF-8. Writers never go through Console.Out, because a live session redirects it into a log region.

Usage

Explore 24 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 15

Methods

public abstract void Flush() #

Flushes buffered text to the device.

public abstract void Write(string text) #

Writes text. Implementations may buffer until ITerminalWriter.Flush.

Parameters

text string required
Text, possibly containing VT sequences.

Properties

public abstract bool IsConsole { get; } #

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