Skip to content
ConsoleMonster

API Reference

Interface

ITerminalWriter

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 17 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 11

Methods

public abstract Void Flush() #
Returns: Void

Flushes buffered text to the device.

public abstract 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 abstract Boolean IsConsole { get; } #

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