Skip to content
ConsoleMonster
Interface

ITerminalOutput

ConsoleMonster.Rendering

Namespace
ConsoleMonster.Rendering
Assembly
ConsoleMonster
Implements
IDisposable
Modifiers
abstract

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 serializes calls from its render thread and the stopping caller's final drain and restoration.

Usage

Explore 8 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.

Accepted by parameters 4

Methods

public abstract void BeginLive() #

Starts live rendering (VT: alternate screen, hidden cursor). No effect for line-based outputs.

public abstract void EndLive() #

Ends live rendering and restores the terminal (cursor, screen, attributes). Safe to call more than once.

public abstract void Invalidate() #

Forces the next frame to be redrawn completely (after a resize or external output).

public abstract void RenderFrame(CellBuffer frame) #

Draws a full-screen frame, writing only the cells that changed since the previous frame.

Parameters

frame ConsoleMonster.Canvas.CellBuffer required
The frame; its size is the screen size.
public abstract void WriteBlock(CellBuffer buffer) #

Appends a rendered block (print-once output) to the scrollback.

Parameters

buffer ConsoleMonster.Canvas.CellBuffer required
The rendered block; trailing blank cells on each row are trimmed.
public abstract void WriteInline(StyledLine line) #

Writes one styled line without ending it (Write-ConsoleText -NoNewLine); the next write continues on it.

Parameters

line ConsoleMonster.Text.StyledLine required
The line.
public abstract void WriteLine(StyledLine line) #

Appends one styled line (stream narration, captured output, summaries).

Parameters

line ConsoleMonster.Text.StyledLine required
The line.

Properties

public abstract TerminalProfile Profile { get; } #

The profile this output encodes for.

public abstract bool SupportsLiveFrames { get; } #

Whether the output can redraw a live frame in place.