Class OutputBase
Abstract base class to assist with implementing IConsoleOutput.
public abstract class OutputBase
- Inheritance
-
OutputBase
- Derived
- Inherited Members
Methods
- AppendOrWriteAttribute(StringBuilder, Attribute, TextStyle)
Changes the color and text style of the console to the given
attr
andredrawTextStyle
. If command can be buffered in line with other output (e.g. CSI sequence) then it should be appended tooutput
otherwise the relevant output state should be flushed directly (e.g. by calling relevant win 32 API method)
- SetCursorPositionImpl(int, int)
When overriden in derived class, positions the terminal output cursor to the specified point on the screen.
- SetCursorVisibility(CursorVisibility)
Changes the visibility of the cursor in the terminal to the specified
visibility
e.g. the flashing indicator, invisible, box indicator etc.
- Write(StringBuilder)
Output the contents of the
output
to the console.
- Write(IOutputBuffer)
Write the contents of the
buffer
to the console