Skip to main content

Crate facett_console

Crate facett_console 

Source
Expand description

facett-console (§8 TYPE-2) — a themed terminal/shell component: a fixed monospace cell grid, a block/beam cursor, optional ANSI colour mapped to the palette, and scrollback on the CygnusEd smooth-scroll engine (§11). A Facet: themeable · resizable · scalable · copyable · searchable.

Lines are appended by the host (a process’ stdout, a REPL); the console owns the scrollback ring + the smooth-scroll offset (deterministic under an injected clock via advance). ANSI SGR colour codes (30–37/90–97) map onto the active Theme so the terminal matches the app.

Structs§

Console
The console / shell component.
Span
A coloured run of text within a console line, with a palette-role colour.

Enums§

AnsiColor
The 8 ANSI colours, mapped to palette roles (not raw RGB) so the terminal follows the theme.
Cursor
Cursor shape (TYPE-2).

Functions§

parse_ansi
Parse a line containing ANSI SGR colour escapes into coloured Spans. Only the foreground-colour subset is handled (others are stripped); enough to make CLI output match the palette.