API Reference
Class
StringTerminalWriter
An in-memory ITerminalWriter. Used by tests (VT byte-stream goldens) and by callers that want rendered output as a string, for example to embed it in another log.
Inheritance
- Object
- StringTerminalWriter
Constructors
public StringTerminalWriter() #Methods
public Void Dispose() #Returns:
VoidPerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public override String ToString() #Returns:
StringReturns everything written so far.
Returns
The accumulated text.
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
Properties
public Boolean IsConsole { get; } #Whether this writer targets a real console handle (as opposed to a file, pipe or buffer).
public Int32 FlushCount { get; private set; } #Number of StringTerminalWriter.Flush calls; a live renderer flushes once per frame.