Skip to main content

Module terminal_graphics

Module terminal_graphics 

Source
Expand description

Terminal graphics capability detection and reporting.

The API is intentionally evidence-shaped instead of boolean-shaped. A caller such as clud needs to know whether graphics support came from a live probe, a strong host hint, weak environment identity, or a hard negative. auto policies can then stay conservative while still surfacing useful diagnostics.

Structs§

GraphicsCapability
Detection result for one terminal graphics protocol.
TerminalCapabilities
Terminal capability snapshot used by clients and diagnostics.
TerminalCapabilityInput
Inputs used to detect terminal capabilities.
TerminalGraphicsCapabilities
Graphics capability set detected for a terminal.
TerminalProbeEvidence
Raw terminal replies collected during active graphics probing.

Enums§

CapabilityStatus
Detection result for a terminal graphics protocol.
EvidenceStrength
Confidence level for graphics capability evidence.
GraphicsProtocol
Terminal graphics protocols recognized by capability detection.

Functions§

current_terminal_capabilities
Detects capabilities for the current terminal with the default probe timeout.
current_terminal_capabilities_with_timeout
Detects capabilities for the current terminal using timeout for active probes.
detect_terminal_capabilities
Detects terminal capabilities from explicit environment and probe evidence.
primary_da_reports_sixel
Returns whether a primary device attributes reply advertises Sixel support.
terminal_graphics_capabilities_from_proto
Converts daemon protobuf terminal graphics capabilities into the Rust form.
terminal_graphics_capabilities_to_proto
Converts terminal graphics capabilities into the daemon protobuf form.
xtsmgraphics_reports_sixel
Returns whether an XTSMGRAPHICS reply indicates Sixel graphics support.