pub struct BlitterSupport {
pub half: bool,
pub quad: bool,
pub sextant: bool,
}crossterm only.Expand description
Runtime terminal capability probe (issue #264): read-only Capabilities
snapshot plus the Blitter ladder it drives. Diagnostics-only — image
rendering routes through the ladder automatically.
Image-rendering primitives the terminal can drive, used to build the
automatic blitter ladder. Each flag is conservative: when the runtime probe
returns no answer the defaults assume only the universally available
primitives (half-block + quadrants).
App code is not required to inspect this; it exists for diagnostics and
to feed Capabilities::best_blitter.
§Example
let blitters = ui.capabilities().blitters;
// Half-block is available on any ANSI terminal.
assert!(blitters.half);Fields§
§half: bool▀ upper-half block — available on any ANSI terminal.
quad: bool▖▗▘▝ quadrant blocks — available on any Unicode-capable terminal.
sextant: bool🬀..🬻 sextants (Unicode 13+) — off by default until a renderer
confirms support. This issue wires the capability slot; a sextant
renderer is a separate feature.
Trait Implementations§
Source§impl Clone for BlitterSupport
impl Clone for BlitterSupport
Source§fn clone(&self) -> BlitterSupport
fn clone(&self) -> BlitterSupport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more