pub struct VT100TermKeyBindings {
pub enter_copy_mode: KeyBinding,
pub copy_selection: KeyBinding,
pub copy_exit: Vec<KeyCode>,
pub copy_move_up: Vec<KeyCode>,
pub copy_move_down: Vec<KeyCode>,
pub copy_move_left: Vec<KeyCode>,
pub copy_move_right: Vec<KeyCode>,
pub copy_set_selection: Vec<KeyCode>,
pub copy_and_exit: Vec<KeyCode>,
}terminal only.Expand description
Configurable keybindings for VT100Term
Fields§
§enter_copy_mode: KeyBindingKey to enter copy mode (default: Ctrl+B)
copy_selection: KeyBindingKey to copy selection (default: Ctrl+Shift+C)
copy_exit: Vec<KeyCode>Exit copy mode (default: Esc, q)
copy_move_up: Vec<KeyCode>Move cursor up in copy mode (default: k, Up)
copy_move_down: Vec<KeyCode>Move cursor down in copy mode (default: j, Down)
copy_move_left: Vec<KeyCode>Move cursor left in copy mode (default: h, Left)
copy_move_right: Vec<KeyCode>Move cursor right in copy mode (default: l, Right)
copy_set_selection: Vec<KeyCode>Set selection anchor in copy mode (default: Space, Enter)
copy_and_exit: Vec<KeyCode>Copy selection and exit copy mode (default: c, y)
Implementations§
Source§impl VT100TermKeyBindings
impl VT100TermKeyBindings
Sourcepub fn with_copy_and_exit(self, keys: Vec<KeyCode>) -> Self
pub fn with_copy_and_exit(self, keys: Vec<KeyCode>) -> Self
Set the keys to copy and exit copy mode
Source§impl VT100TermKeyBindings
impl VT100TermKeyBindings
Sourcepub fn with_copy_exit(self, keys: Vec<KeyCode>) -> Self
pub fn with_copy_exit(self, keys: Vec<KeyCode>) -> Self
Set the keys to exit copy mode
Source§impl VT100TermKeyBindings
impl VT100TermKeyBindings
Sourcepub fn with_copy_move_down(self, keys: Vec<KeyCode>) -> Self
pub fn with_copy_move_down(self, keys: Vec<KeyCode>) -> Self
Set the keys to move down in copy mode
Source§impl VT100TermKeyBindings
impl VT100TermKeyBindings
Sourcepub fn with_copy_move_left(self, keys: Vec<KeyCode>) -> Self
pub fn with_copy_move_left(self, keys: Vec<KeyCode>) -> Self
Set the keys to move left in copy mode
Source§impl VT100TermKeyBindings
impl VT100TermKeyBindings
Sourcepub fn with_copy_move_right(self, keys: Vec<KeyCode>) -> Self
pub fn with_copy_move_right(self, keys: Vec<KeyCode>) -> Self
Set the keys to move right in copy mode
Source§impl VT100TermKeyBindings
impl VT100TermKeyBindings
Sourcepub fn with_copy_move_up(self, keys: Vec<KeyCode>) -> Self
pub fn with_copy_move_up(self, keys: Vec<KeyCode>) -> Self
Set the keys to move up in copy mode
Source§impl VT100TermKeyBindings
impl VT100TermKeyBindings
Sourcepub fn with_copy_selection(self, binding: KeyBinding) -> Self
pub fn with_copy_selection(self, binding: KeyBinding) -> Self
Set the key to copy selection
Source§impl VT100TermKeyBindings
impl VT100TermKeyBindings
Sourcepub fn with_copy_set_selection(self, keys: Vec<KeyCode>) -> Self
pub fn with_copy_set_selection(self, keys: Vec<KeyCode>) -> Self
Set the keys to set selection in copy mode
Source§impl VT100TermKeyBindings
impl VT100TermKeyBindings
Sourcepub fn with_enter_copy_mode(self, binding: KeyBinding) -> Self
pub fn with_enter_copy_mode(self, binding: KeyBinding) -> Self
Set the key to enter copy mode
Trait Implementations§
Source§impl Clone for VT100TermKeyBindings
impl Clone for VT100TermKeyBindings
Source§fn clone(&self) -> VT100TermKeyBindings
fn clone(&self) -> VT100TermKeyBindings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VT100TermKeyBindings
impl Debug for VT100TermKeyBindings
Auto Trait Implementations§
impl Freeze for VT100TermKeyBindings
impl RefUnwindSafe for VT100TermKeyBindings
impl Send for VT100TermKeyBindings
impl Sync for VT100TermKeyBindings
impl Unpin for VT100TermKeyBindings
impl UnwindSafe for VT100TermKeyBindings
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<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