Expand description
Semantic console output for human, machine-text, and opaque-byte destinations.
termosaic owns presentation policy and output safety. Applications provide
semantic tokens and explicit destination capabilities; the crate never installs
process-global color, theme, progress, stdout, or stderr state.
The complete Laidout layout kernel is available through laidout.
Re-exports§
pub use attr::AttrSet;pub use attr::AttrValue;pub use attr::StyleAttr;pub use attr::StyleAttrError;pub use background::Background;pub use formatters::json::JsonFormatError;pub use formatters::json::Pretty as PrettyJson;pub use laidout;
Modules§
- attr
- Open style attributes.
- background
- Terminal background-brightness discovery.
- formatters
- Ready-made semantic formatters for common terminal content.
- semantic
- Small semantic atoms used by native components and application documents.
- themes
- Built-in theme constructors.
- tokens
- Standard semantic token vocabulary.
Structs§
- Cell
- Console
- Console
Options - Destination
Options - Diagnostic
- A semantic diagnostic with optional code, details, and hints.
- Doc
- A semantic human-output document.
- Fixed
Column - Fixed
Table - Fixed
Table Options - Human
Exact Capacity - Human
Fast Capacity - Human
Layout Options - Human
Render Capacity - Human
Text - Sanitized text safe to pass through the human renderer.
- Human
Visit Capacity - Human
Writer - Json
Serialize Error - List
- A semantic list with configurable markers and item separation.
- Machine
Text - Validated UTF-8 machine-readable text.
- Machine
Text Writer - Opaque
Writer - Pair
- A semantic key/value or human label/value pair.
- Prepared
Doc - A reusable dense document prepared for either layout strategy.
- Progress
Handle - Progress
Options - Span
- Stdio
Destination Options - Stdio
Options - Styled
Line - One rendered line of styled fragments, without a trailing line break.
- Styled
Render Workspace - Retained storage for repeated styled rendering.
- Styled
Run - One semantically styled fragment of a rendered line.
- Terminal
Capabilities - Terminal
Color Policy - Resolved stdio color policy for consumers that own their renderer.
- Theme
- Theme
Builder - Theme
Catalog - Theme
Catalog Builder - Theme
Name - Validated theme name.
- Theme
Rule - A partial style applied on top of less-specific and outer semantic rules.
- Token
Ancestors - Iterator returned by
TokenId::ancestors. - TokenId
- A validated hierarchical semantic token identifier.
- Token
Style - Style assigned to one semantic token.
Enums§
- Alignment
- Ansi
Color - Portable 16-color foreground values.
- Color
- A backend-neutral terminal color, used for foreground and background.
- Color
Choice - Color
Depth - Component
Error - Console
Error - Diagnostic
Level - Human
Cost Component - Human
Layout Error - Human
Prepare Error - Human
Prepared Resource - Human
Render Error - Human
Reserve Error - Human
Solve Counter - Human
Workspace Resource - Json
Output Error - Json
Style - Layout
Strategy - List
Kind - Machine
Output Error - Output
Class - Overflow
- Pair
Kind - Pair
Layout - Resolved
Color - A terminal color resolved for a concrete color depth.
- Stream
- Style
Value - Table
Error - Text
Layout - Text
Safety Error - Theme
Catalog Error - Theme
Error - Token
IdError