Skip to main content

Module console

Module console 

Source
Expand description

Console rendering primitives for terminal diagnostics and debugging.

This module provides best-effort terminal capability detection and styled text rendering without forcing any output. Consumers can use Console with an explicit writer to keep output deterministic in tests.

Structs§

Capabilities
Terminal capability information.
Console
Console for rendering styled output with terminal detection.
Style
Text style configuration.
Text
Styled text container.

Enums§

Color
Color value for styled output.
ColorMode
Color mode selection.
ColorSupport
Supported color depth.

Traits§

Render

Functions§

char_width
Compute display width of a single character.
str_width
Compute display width of a string.