Module detection

Module detection 

Source
Expand description

Platform identity, capability, and display/terminal detection.

Structs§

EnvironmentCapabilities
Display, terminal, and interactive rendering capabilities.
EnvironmentIdentity
Operating system, kernel, libc, userspace, and architecture identity.

Functions§

check_has_format
Check if an environment identity and capabilities set contains a format.
collect_all_format_ids
Collect and deduplicate all FormatId elements representing an environment.
decode_environment_from_formats
Decode EnvironmentIdentity and EnvironmentCapabilities from a slice of FormatId formats and an optional kernel version string, classifying each format by its declarative [FormatCategory].
detect_architecture
Detect the target machine architecture as an authoritative FormatId.
detect_capabilities
Detect active device capabilities, display server, and terminal features.
detect_display_server
Detect the active display protocol and windowing context.
detect_identity
Detect the host execution identity.
detect_iterm_support
Detect whether the terminal supports the iTerm2 graphics protocol.
detect_kitty_support
Detect whether the terminal supports the Kitty graphics protocol.
detect_sixel_support
Detect whether the terminal supports Sixel graphics.
detect_terminal_capabilities_for
Detect terminal capabilities and associated device capabilities for a specific terminal name and stdio terminal stream flags.
format_environment_summary
Produce a human-readable one-line summary string for an environment.