GhosttyTerminalSnapshot class final

Snapshot of styled terminal output suitable for custom painting.

Implemented types
Annotations

Constructors

GhosttyTerminalSnapshot({required List<GhosttyTerminalLine> lines, GhosttyTerminalCursor? cursor})
const
GhosttyTerminalSnapshot.empty()
const
GhosttyTerminalSnapshot.fromFormattedVt(String text, {int maxLines = 2000})
Parses VT-formatted terminal output into styled lines and cursor state.
factory

Properties

cursor GhosttyTerminalCursor?
final
hashCode int
The hash code for this object.
no setterinherited
lineCount int
no setter
lines List<GhosttyTerminalLine>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hyperlinkAt(GhosttyTerminalCellPosition position) String?
Returns the OSC 8 hyperlink at position, if the cell is linked.
override
lineSelectionBetweenRows(int baseRow, int extentRow) GhosttyTerminalSelection?
Returns an inclusive full-row selection across visible rows.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectAllSelection() GhosttyTerminalSelection?
Returns a selection covering the full visible transcript.
override
textForSelection(GhosttyTerminalSelection selection, {GhosttyTerminalCopyOptions options = const GhosttyTerminalCopyOptions()}) String
Extracts plain text for an inclusive cell selection.
override
toString() String
A string representation of this object.
inherited
wordSelectionAt(GhosttyTerminalCellPosition position, {GhosttyTerminalWordBoundaryPolicy policy = const GhosttyTerminalWordBoundaryPolicy()}) GhosttyTerminalSelection?
Returns a word-like inclusive selection anchored at position.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited