Expand description
Platform identity, capability, and display/terminal detection.
Structs§
- Environment
Capabilities - Display, terminal, and interactive rendering capabilities.
- Environment
Identity - 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
FormatIdelements representing an environment. - decode_
environment_ from_ formats - Decode
EnvironmentIdentityandEnvironmentCapabilitiesfrom a slice ofFormatIdformats 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.