Struct PushKeyboardEnhancementFlags
pub struct PushKeyboardEnhancementFlags(pub KeyboardEnhancementFlags);Available on crate feature
term only.Expand description
A command that enables the kitty keyboard protocol, which adds extra information to keyboard events and removes ambiguity for modifier keys.
It should be paired with PopKeyboardEnhancementFlags at the end of execution.
Example usage:
use std::io::{Write, stdout};
use crossterm::execute;
use crossterm::event::{
KeyboardEnhancementFlags,
PushKeyboardEnhancementFlags,
PopKeyboardEnhancementFlags
};
let mut stdout = stdout();
execute!(
stdout,
PushKeyboardEnhancementFlags(
KeyboardEnhancementFlags::DISAMBIGUATE_ESCAPE_CODES
)
);
// ...
execute!(stdout, PopKeyboardEnhancementFlags);Note that, currently, only the following support this protocol:
Tuple Fields§
§0: KeyboardEnhancementFlagsTrait Implementations§
§impl Clone for PushKeyboardEnhancementFlags
impl Clone for PushKeyboardEnhancementFlags
§fn clone(&self) -> PushKeyboardEnhancementFlags
fn clone(&self) -> PushKeyboardEnhancementFlags
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 more§impl Command for PushKeyboardEnhancementFlags
impl Command for PushKeyboardEnhancementFlags
impl Copy for PushKeyboardEnhancementFlags
§impl Debug for PushKeyboardEnhancementFlags
impl Debug for PushKeyboardEnhancementFlags
impl Eq for PushKeyboardEnhancementFlags
§impl PartialEq for PushKeyboardEnhancementFlags
impl PartialEq for PushKeyboardEnhancementFlags
impl StructuralPartialEq for PushKeyboardEnhancementFlags
Auto Trait Implementations§
impl Freeze for PushKeyboardEnhancementFlags
impl RefUnwindSafe for PushKeyboardEnhancementFlags
impl Send for PushKeyboardEnhancementFlags
impl Sync for PushKeyboardEnhancementFlags
impl Unpin for PushKeyboardEnhancementFlags
impl UnsafeUnpin for PushKeyboardEnhancementFlags
impl UnwindSafe for PushKeyboardEnhancementFlags
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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