Struct libnotcurses_sys::c_api::ffi::nccapabilities
source · #[repr(C)]pub struct nccapabilities {
pub colors: c_uint,
pub utf8: bool,
pub rgb: bool,
pub can_change_colors: bool,
pub halfblocks: bool,
pub quadrants: bool,
pub sextants: bool,
pub braille: bool,
}Expand description
Capabilities, derived from terminfo, environment variables, and queries
Fields§
§colors: c_uintsize of palette for indexed colors
utf8: boolare we using utf-8 encoding? from nl_langinfo(3)
rgb: bool24bit color? COLORTERM/heuristics/terminfo ‘rgb’
can_change_colors: boolcan we change the palette? terminfo ‘ccc’
halfblocks: boolwe assume halfblocks, but some are known to lack them
quadrants: booldo we have (good, vetted) Unicode 1 quadrant support?
sextants: booldo we have (good, vetted) Unicode 13 sextant support?
braille: booldo we have Braille support? (linux console does not)
Implementations§
Trait Implementations§
source§impl Clone for nccapabilities
impl Clone for nccapabilities
source§fn clone(&self) -> nccapabilities
fn clone(&self) -> nccapabilities
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for nccapabilities
impl Debug for nccapabilities
source§impl Default for nccapabilities
impl Default for nccapabilities
source§fn default() -> nccapabilities
fn default() -> nccapabilities
Returns the “default value” for a type. Read more
source§impl Hash for nccapabilities
impl Hash for nccapabilities
source§impl Ord for nccapabilities
impl Ord for nccapabilities
source§fn cmp(&self, other: &nccapabilities) -> Ordering
fn cmp(&self, other: &nccapabilities) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<nccapabilities> for nccapabilities
impl PartialEq<nccapabilities> for nccapabilities
source§fn eq(&self, other: &nccapabilities) -> bool
fn eq(&self, other: &nccapabilities) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<nccapabilities> for nccapabilities
impl PartialOrd<nccapabilities> for nccapabilities
source§fn partial_cmp(&self, other: &nccapabilities) -> Option<Ordering>
fn partial_cmp(&self, other: &nccapabilities) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more