pub struct Capabilities {Show 13 fields
pub synchronized_output: bool,
pub grapheme_clusters: bool,
pub in_band_resize: bool,
pub mouse_normal: bool,
pub mouse_button: bool,
pub mouse_any: bool,
pub mouse_sgr: bool,
pub mouse_sgr_pixel: bool,
pub sixel: bool,
pub clipboard: bool,
pub kitty_keyboard: bool,
pub modify_other_keys: bool,
pub true_color: bool,
}Expand description
Terminal capabilities detected from the replies to the queries
Screen::init fires. Every field answers a
single question: does the terminal support this? The facade intercepts
the reply events as they flow through
read_event / try_read_event,
records support here, and applies the render-affecting ones — the app
never sees the reply events. Read back with
Screen::capabilities.
Fields§
§synchronized_output: boolSynchronized output (DEC private mode 2026). Applied: frames are wrapped in begin/end-synchronized-update markers.
grapheme_clusters: boolUnicode core / grapheme-cluster mode (DEC private mode 2027). Applied: cell widths are measured per grapheme cluster.
in_band_resize: boolIn-band resize notifications (DEC private mode 2048).
mouse_normal: boolNormal mouse button tracking (DEC private mode 1000).
Button-event mouse tracking (DEC private mode 1002).
mouse_any: boolAny-event mouse tracking (DEC private mode 1003).
mouse_sgr: boolSGR mouse encoding (DEC private mode 1006).
mouse_sgr_pixel: boolSGR-pixel mouse encoding (DEC private mode 1016).
sixel: boolSixel graphics (Primary DA attribute 4).
clipboard: boolClipboard access (Primary DA attribute 52).
kitty_keyboard: boolKitty keyboard protocol (the terminal answered CSI ? u).
modify_other_keys: boolxterm modifyOtherKeys (the terminal answered CSI ? 4 m).
true_color: boolDirect (24-bit) color, confirmed by an XTGETTCAP RGB/Tc reply.
Applied: the renderer’s color profile is upgraded to
Profile::TrueColor.
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Capabilities
impl Debug for Capabilities
Source§impl Default for Capabilities
impl Default for Capabilities
Source§fn default() -> Capabilities
fn default() -> Capabilities
Source§impl PartialEq for Capabilities
impl PartialEq for Capabilities
Source§fn eq(&self, other: &Capabilities) -> bool
fn eq(&self, other: &Capabilities) -> bool
self and other values to be equal, and is used by ==.