Module terminal

Source
Expand description

Retained terminal-log viewer with streaming events, search, selection, and scrolling.

The widget renders styled logical lines rather than emulating a terminal protocol. Event chunks are joined and split on newlines, complete history is bounded, and the optional event source is drained during layout, paint, and input.

Structs§

TerminalEvent
Sequenced terminal-buffer mutation with optional timestamp metadata.
TerminalEventBuffer
Cloneable single-threaded FIFO event source.
TerminalLine
One logical terminal line with semantic and optional timestamp metadata.
TerminalLineAttrs
Optional per-line colors and emphasis flags.
TerminalPosition
Zero-based logical line and Unicode-scalar column.
TerminalSearchMatch
One non-overlapping search hit expressed as UTF-8 byte offsets.
TerminalSelection
Direction-preserving anchor/focus text selection.
TerminalView
Scrollable terminal-log widget with static lines and/or streaming events.
TerminalViewStyle
Terminal palette, typography, geometry, and scrollbar metrics.

Enums§

TerminalEventKind
Mutation consumed by a TerminalView buffer.
TerminalLineKind
Semantic line category used to choose a default text style.

Traits§

TerminalEventSource
Pull source drained by the terminal during layout, paint, and input.

Functions§

terminal_search_matches
Finds non-overlapping exact substring matches in line order.