pub struct ProbeResults {Show 20 fields
pub kitty_graphics: Option<bool>,
pub cell_px: Option<(u16, u16)>,
pub sixel_color_registers: Option<u16>,
pub sixel_status: Option<u16>,
pub da1_attributes: Option<Vec<u16>>,
pub sync_output: Option<bool>,
pub kitty_keyboard: Option<u8>,
pub background: Option<(u16, u16, u16)>,
pub osc99_confirmed: bool,
pub appearance_notifications_set: bool,
pub appearance_notifications: bool,
pub in_band_resize_set: bool,
pub in_band_resize: bool,
pub paste_events: bool,
pub insert_mode_set: bool,
pub newline_mode_set: bool,
pub xterm_scroll_to_bottom_on_output: bool,
pub xterm_scroll_to_bottom_on_key_press: bool,
pub preserved_input: Vec<u8>,
pub timed_out: bool,
}Expand description
Replies collected by a runtime graphics capability probe.
Fields§
§kitty_graphics: Option<bool>Whether a Kitty graphics reply was received and reported success.
cell_px: Option<(u16, u16)>Pixel width and height of one terminal cell.
sixel_color_registers: Option<u16>Number of SIXEL color registers reported by XTSMGRAPHICS.
sixel_status: Option<u16>XTSMGRAPHICS status for the color-register query (0 means success).
da1_attributes: Option<Vec<u16>>Primary Device Attributes reported by DA1.
sync_output: Option<bool>Whether DECRQM reported synchronized output mode 2026 as supported.
kitty_keyboard: Option<u8>Kitty keyboard protocol flags reported by the terminal.
background: Option<(u16, u16, u16)>Terminal background color normalized to 16-bit RGB components.
osc99_confirmed: boolWhether Kitty OSC 99 capability probing confirmed rich notifications.
appearance_notifications_set: boolWhether DEC mode 2031 was already set before the session.
appearance_notifications: boolWhether DECRQM reported DEC mode 2031 as supported.
in_band_resize_set: boolWhether DEC mode 2048 was already set before the session.
in_band_resize: boolWhether DECRQM reported DEC mode 2048 as supported.
paste_events: boolWhether DECRQM reported DEC mode 5522 (kitty enhanced paste) as settable.
insert_mode_set: boolWhether DECRQM reported ANSI insert mode 4 as set and changeable.
newline_mode_set: boolWhether DECRQM reported ANSI new-line mode 20 as set and changeable.
xterm_scroll_to_bottom_on_output: boolWhether DECRQM reported xterm mode 1010 as set and changeable.
Status 3 is permanently set, so it is deliberately not changed.
xterm_scroll_to_bottom_on_key_press: boolWhether DECRQM reported xterm mode 1011 as set and changeable.
Status 3 is permanently set, so it is deliberately not changed.
preserved_input: Vec<u8>Non-probe bytes read while negotiation was active, in original order.
timed_out: boolWhether negotiation ended at the deadline rather than at the DA1 fence.
Implementations§
Source§impl ProbeResults
impl ProbeResults
Sourcepub fn supports_sixel(&self) -> bool
pub fn supports_sixel(&self) -> bool
Whether DA1 or XTSMGRAPHICS advertised SIXEL support.
Trait Implementations§
Source§impl Clone for ProbeResults
impl Clone for ProbeResults
Source§fn clone(&self) -> ProbeResults
fn clone(&self) -> ProbeResults
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 ProbeResults
impl Debug for ProbeResults
Source§impl Default for ProbeResults
impl Default for ProbeResults
Source§fn default() -> ProbeResults
fn default() -> ProbeResults
impl Eq for ProbeResults
Source§impl PartialEq for ProbeResults
impl PartialEq for ProbeResults
impl StructuralPartialEq for ProbeResults
Auto Trait Implementations§
impl Freeze for ProbeResults
impl RefUnwindSafe for ProbeResults
impl Send for ProbeResults
impl Sync for ProbeResults
impl Unpin for ProbeResults
impl UnsafeUnpin for ProbeResults
impl UnwindSafe for ProbeResults
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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