NcCapabilities

Type Alias NcCapabilities 

Source
pub type NcCapabilities = nccapabilities;
Expand description

Capabilities, derived from terminfo, environment variables, and queries.

Aliased Type§

#[repr(C)]
pub struct NcCapabilities { pub colors: u32, pub utf8: bool, pub rgb: bool, pub can_change_colors: bool, pub halfblocks: bool, pub quadrants: bool, pub sextants: bool, pub braille: bool, }

Fields§

§colors: u32

size of palette for indexed colors

§utf8: bool

are we using utf-8 encoding? from nl_langinfo(3)

§rgb: bool

24bit color? COLORTERM/heuristics/terminfo ‘rgb’

§can_change_colors: bool

can we change the palette? terminfo ‘ccc’

§halfblocks: bool

we assume halfblocks, but some are known to lack them

§quadrants: bool

do we have (good, vetted) Unicode 1 quadrant support?

§sextants: bool

do we have (good, vetted) Unicode 13 sextant support?

§braille: bool

do we have Braille support? (linux console does not)

Implementations§

Source§

impl NcCapabilities

Source

pub fn from_nc(nc: &mut Nc) -> Self