pub enum MouseProtocolMode {
None,
Press,
PressRelease,
ButtonMotion,
AnyMotion,
}Expand description
The xterm mouse handling mode currently in use.
Variants§
None
Mouse handling is disabled.
Press
Mouse button events should be reported on button press. Also known as
X10 mouse mode.
On/off: CSI ? 9 h / CSI ? 9 l
PressRelease
Mouse button events should be reported on button press and release.
Also known as VT200 mouse mode.
On/off: CSI ? 1000 h / CSI ? 1000 l
ButtonMotion
On/off: CSI ? 1001 h / CSI ? 1001 l
Mouse button events should be reported on button press and release, as
well as when the mouse moves between cells while a button is held
down.
On/off: CSI ? 1002 h / CSI ? 1002 l
AnyMotion
Mouse button events should be reported on button press and release,
and mouse motion events should be reported when the mouse moves
between cells regardless of whether a button is held down or not.
On/off: CSI ? 1003 h / CSI ? 1003 l
Trait Implementations§
Source§impl Clone for MouseProtocolMode
impl Clone for MouseProtocolMode
Source§fn clone(&self) -> MouseProtocolMode
fn clone(&self) -> MouseProtocolMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MouseProtocolMode
impl Debug for MouseProtocolMode
Source§impl Default for MouseProtocolMode
impl Default for MouseProtocolMode
Source§fn default() -> MouseProtocolMode
fn default() -> MouseProtocolMode
Source§impl PartialEq for MouseProtocolMode
impl PartialEq for MouseProtocolMode
impl Copy for MouseProtocolMode
impl Eq for MouseProtocolMode
impl StructuralPartialEq for MouseProtocolMode
Auto Trait Implementations§
impl Freeze for MouseProtocolMode
impl RefUnwindSafe for MouseProtocolMode
impl Send for MouseProtocolMode
impl Sync for MouseProtocolMode
impl Unpin for MouseProtocolMode
impl UnsafeUnpin for MouseProtocolMode
impl UnwindSafe for MouseProtocolMode
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<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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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