ui/widgets/interactive/selection_controller library

Classes

SelectionController<T>
A controller that manages selection state for selection-based widgets.
SelectionPoint
Immutable 0-based (col, row) coordinate in a terminal Buffer.
SelectionRegion
Immutable inclusive cell bounds (minCol..maxCol, minRow..maxRow) for selection clamping.
TerminalListenable
An interface for objects that provide change notifications to listeners.
TerminalSelectionController
A controller that manages terminal cell selection state, supporting character/stream, word, line, and rectangular block/box selection modes, pane region clamping, virtual-scrollback coordinate offsets, wide-grapheme boundary snapping, unified OSC 8 + plain-text link resolution, and clipboard text extraction.

Enums

SelectionMode
The selection behavior mode for a terminal selection.

Typedefs

Resolved hyperlink URI and its inclusive virtual-buffer cell span.
VirtualLineLookup = VirtualLineSlice? Function(int virtualRow)
Callback returning cell data for virtualRow, or null when out of bounds.
VirtualLineSlice = ({List<String> characters, bool isWrapped, List<String?>? uris})
Soft-wrap metadata, grapheme cells, and optional OSC 8 URIs for a virtual row.