#[non_exhaustive]pub struct Capabilities { /* private fields */ }Expand description
The detected current terminal capabilities.
It can be generated from
Notcurses.capabilities().
Implementations§
Source§impl Capabilities
impl Capabilities
Sourcepub fn best_blitter(&self) -> Blitter
pub fn best_blitter(&self) -> Blitter
Sourcepub fn can_blitter(&self, blitter: Blitter) -> bool
pub fn can_blitter(&self, blitter: Blitter) -> bool
Returns true if the provided Blitter is among the capabilities.
Sourcepub fn images(&self) -> bool
pub fn images(&self) -> bool
Returns true if loading images is possible.
This requires that notcurse is built against FFmpeg/OIIO.
Sourcepub fn videos(&self) -> bool
pub fn videos(&self) -> bool
Returns true if loading videos is possible.
This requires that notcurse is built against FFmpeg/OIIO.
Sourcepub const fn pixel_implementation(&self) -> PixelImplementation
pub const fn pixel_implementation(&self) -> PixelImplementation
Returns the detected pixel-blitting implementation.
Sourcepub fn truecolor(&self) -> bool
pub fn truecolor(&self) -> bool
Returns true if it’s possible to directly specify RGB values per Cell, or false if it’s only possible to use palettes.
Sourcepub fn palette_change(&self) -> bool
pub fn palette_change(&self) -> bool
Returns true if the “hardware” palette can be changed.
Requires the “ccc” terminfo capability, and that the number of colors
supported is at least the size of the Palette structure.
Sourcepub fn palette_size(&self) -> u32
pub fn palette_size(&self) -> u32
Returns the number of simultaneous colors claimed to be supported, if there is color support.
Note that several terminal emulators advertise more colors than they actually support, downsampling internally.
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more