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§
- Terminal
Event - Sequenced terminal-buffer mutation with optional timestamp metadata.
- Terminal
Event Buffer - Cloneable single-threaded FIFO event source.
- Terminal
Line - One logical terminal line with semantic and optional timestamp metadata.
- Terminal
Line Attrs - Optional per-line colors and emphasis flags.
- Terminal
Position - Zero-based logical line and Unicode-scalar column.
- Terminal
Search Match - One non-overlapping search hit expressed as UTF-8 byte offsets.
- Terminal
Selection - Direction-preserving anchor/focus text selection.
- Terminal
View - Scrollable terminal-log widget with static lines and/or streaming events.
- Terminal
View Style - Terminal palette, typography, geometry, and scrollbar metrics.
Enums§
- Terminal
Event Kind - Mutation consumed by a
TerminalViewbuffer. - Terminal
Line Kind - Semantic line category used to choose a default text style.
Traits§
- Terminal
Event Source - Pull source drained by the terminal during layout, paint, and input.
Functions§
- terminal_
search_ matches - Finds non-overlapping exact substring matches in line order.