pub struct BackendFeatures {
pub mouse_capture: bool,
pub bracketed_paste: bool,
pub focus_events: bool,
pub kitty_keyboard: bool,
}Expand description
Terminal feature toggles that backends must support.
These map to terminal modes that are enabled/disabled at session start/end. Backends translate these into platform-specific escape sequences or API calls.
Fields§
§mouse_capture: boolSGR mouse capture
(CSI ? 1000 h + CSI ? 1002 h + CSI ? 1003 h + CSI ? 1006 h, and matching l disables).
bracketed_paste: boolBracketed paste mode (CSI ? 2004 h/l on native).
focus_events: boolFocus-in/focus-out reporting (CSI ? 1004 h/l on native).
kitty_keyboard: boolKitty keyboard protocol (CSI > 15 u on native).
Trait Implementations§
Source§impl Clone for BackendFeatures
impl Clone for BackendFeatures
Source§fn clone(&self) -> BackendFeatures
fn clone(&self) -> BackendFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackendFeatures
Source§impl Debug for BackendFeatures
impl Debug for BackendFeatures
Source§impl Default for BackendFeatures
impl Default for BackendFeatures
Source§fn default() -> BackendFeatures
fn default() -> BackendFeatures
Returns the “default value” for a type. Read more
impl Eq for BackendFeatures
Source§impl PartialEq for BackendFeatures
impl PartialEq for BackendFeatures
Source§fn eq(&self, other: &BackendFeatures) -> bool
fn eq(&self, other: &BackendFeatures) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendFeatures
Auto Trait Implementations§
impl Freeze for BackendFeatures
impl RefUnwindSafe for BackendFeatures
impl Send for BackendFeatures
impl Sync for BackendFeatures
impl Unpin for BackendFeatures
impl UnsafeUnpin for BackendFeatures
impl UnwindSafe for BackendFeatures
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.