API Reference
ITerminalOutput
Turns frames and lines into output for one mode: VT (diffed live frames, alternate screen), Stream (append-only lines, optional colour) or Plain (ASCII lines, no colour). Not thread-safe: a live session calls it from its single render thread only.
Usage
Explore 3 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.
Returned or exposed by 3
- Property LiveSessionOptions.Output
- Method Terminal.CreateInlineOutput
- Method Terminal.CreateOutput
Methods
public abstract Void BeginLive() #VoidStarts live rendering (VT: alternate screen, hidden cursor). No effect for line-based outputs.
public abstract Void EndLive() #VoidEnds live rendering and restores the terminal (cursor, screen, attributes). Safe to call more than once.
public abstract Void Invalidate() #VoidForces the next frame to be redrawn completely (after a resize or external output).
public abstract Void RenderFrame(CellBuffer frame) #VoidDraws a full-screen frame, writing only the cells that changed since the previous frame.
Parameters
- frame ConsoleMonster.Canvas.CellBuffer
- The frame; its size is the screen size.
public abstract Void WriteBlock(CellBuffer buffer) #VoidAppends a rendered block (print-once output) to the scrollback.
Parameters
- buffer ConsoleMonster.Canvas.CellBuffer
- The rendered block; trailing blank cells on each row are trimmed.
public abstract Void WriteInline(StyledLine line) #VoidWrites one styled line without ending it (Write-ConsoleText -NoNewLine); the next write continues on it.
Parameters
- line ConsoleMonster.Text.StyledLine
- The line.
public abstract Void WriteLine(StyledLine line) #VoidAppends one styled line (stream narration, captured output, summaries).
Parameters
- line ConsoleMonster.Text.StyledLine
- The line.