API Reference
Class
ConsoleHandleWriter
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:
VoidPerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Void Write(String text) #Returns:
VoidWrites text. Implementations may buffer until ITerminalWriter.Flush.
Parameters
- text System.String
- Text, possibly containing VT sequences.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public Boolean IsConsole { get; } #Whether this writer targets a real console handle (as opposed to a file, pipe or buffer).