pub struct Probe {
pub background: Option<(u8, u8, u8)>,
pub kitty_keyboard: Option<u32>,
pub sync_output: Option<ModeState>,
pub sgr_mouse: Option<ModeState>,
pub focus_events: Option<ModeState>,
pub truecolor: Option<bool>,
pub da1: bool,
pub da1_attrs: Option<String>,
pub modes_queried: bool,
}Expand description
What the terminal answered. None = no answer (unsupported, or swallowed by a multiplexer).
Fields§
§background: Option<(u8, u8, u8)>Background color from OSC 11.
kitty_keyboard: Option<u32>Kitty keyboard protocol flags (Some = supported).
sync_output: Option<ModeState>§sgr_mouse: Option<ModeState>§focus_events: Option<ModeState>§truecolor: Option<bool>DECRQSS answer to the 24-bit test color: Some(true) = kept exactly (truecolor), Some(false) =
downsampled or refused.
da1: boolDA1 answered (the probe completed; missing answers above are real “no“s).
da1_attrs: Option<String>Raw DA1 attributes, e.g. “62;22”.
modes_queried: boolWhether the DECRQM / kitty / DECRQSS questions were asked (query_for); when not, their missing
answers mean “unknown”, not “no”.
Implementations§
Trait Implementations§
impl Eq for Probe
impl StructuralPartialEq for Probe
Auto Trait Implementations§
impl Forget for Probe
impl Freeze for Probe
impl Move for Probe
impl RefUnwindSafe for Probe
impl Send for Probewhere
RawVecInner: Send,
impl Sync for Probewhere
RawVecInner: Sync,
impl Unpin for Probe
impl UnsafeUnpin for Probe
impl UnwindSafe for Probewhere
RawVecInner: UnwindSafe,
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
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more