Skip to content
ConsoleMonster

API Reference

Class

ConsoleHandleWriter

Namespace ConsoleMonster.Output
Assembly ConsoleMonster
Implements
ITerminalWriter IDisposable
Modifiers sealed

Buffers UTF-16 text and writes directly to the Windows stdout console, independent of its code page.

Inheritance

  • Object
  • ConsoleHandleWriter

Constructors

public ConsoleHandleWriter() #

Creates a writer for the process stdout console handle.

Exceptions

  • PlatformNotSupportedException – The process is not running on Windows.
  • IOException – Stdout is not a console handle.

Methods

public Void Dispose() #
Returns: Void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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).