Skip to main content

Crate termosaic

Crate termosaic 

Source
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
ConsoleOptions
DestinationOptions
Diagnostic
A semantic diagnostic with optional code, details, and hints.
Doc
A semantic human-output document.
FixedColumn
FixedTable
FixedTableOptions
HumanExactCapacity
HumanFastCapacity
HumanLayoutOptions
HumanRenderCapacity
HumanText
Sanitized text safe to pass through the human renderer.
HumanVisitCapacity
HumanWriter
JsonSerializeError
List
A semantic list with configurable markers and item separation.
MachineText
Validated UTF-8 machine-readable text.
MachineTextWriter
OpaqueWriter
Pair
A semantic key/value or human label/value pair.
PreparedDoc
A reusable dense document prepared for either layout strategy.
ProgressHandle
ProgressOptions
Span
StdioDestinationOptions
StdioOptions
StyledLine
One rendered line of styled fragments, without a trailing line break.
StyledRenderWorkspace
Retained storage for repeated styled rendering.
StyledRun
One semantically styled fragment of a rendered line.
TerminalCapabilities
TerminalColorPolicy
Resolved stdio color policy for consumers that own their renderer.
Theme
ThemeBuilder
ThemeCatalog
ThemeCatalogBuilder
ThemeName
Validated theme name.
ThemeRule
A partial style applied on top of less-specific and outer semantic rules.
TokenAncestors
Iterator returned by TokenId::ancestors.
TokenId
A validated hierarchical semantic token identifier.
TokenStyle
Style assigned to one semantic token.

Enums§

Alignment
AnsiColor
Portable 16-color foreground values.
Color
A backend-neutral terminal color, used for foreground and background.
ColorChoice
ColorDepth
ComponentError
ConsoleError
DiagnosticLevel
HumanCostComponent
HumanLayoutError
HumanPrepareError
HumanPreparedResource
HumanRenderError
HumanReserveError
HumanSolveCounter
HumanWorkspaceResource
JsonOutputError
JsonStyle
LayoutStrategy
ListKind
MachineOutputError
OutputClass
Overflow
PairKind
PairLayout
ResolvedColor
A terminal color resolved for a concrete color depth.
Stream
StyleValue
TableError
TextLayout
TextSafetyError
ThemeCatalogError
ThemeError
TokenIdError