Struct tmux_interface::commands::key_bindings::send_keys::SendKeys
source · pub struct SendKeys<'a> {
pub expand_formats: bool,
pub hex: bool,
pub client: bool,
pub disable_lookup: bool,
pub mouse_event: bool,
pub copy_mode: bool,
pub reset: bool,
pub target_client: Option<Cow<'a, str>>,
pub repeat_count: Option<usize>,
pub target_pane: Option<Cow<'a, str>>,
pub key: Option<Cow<'a, str>>,
}
Expand description
Structure
§Manual
tmux ^3.4:
send-keys [-FHKlMRX] [-c target-client] [-N repeat-count] [-t target-pane] key ...
(alias: send)
tmux ^3.1:
send-keys [-FHlMRX] [-N repeat-count] [-t target-pane] key ...
(alias: send)
tmux ^3.0:
send-keys [-HlMRX] [-N repeat-count] [-t target-pane] key ...
(alias: send)
tmux ^2.4:
send-keys [-lMRX] [-N repeat-count] [-t target-pane] key ...
(alias: send)
tmux ^2.1:
send-keys [-lMR] [-t target-pane] key ...
(alias: send)
tmux ^1.7:
send-keys [-lR] [-t target-pane] key ...
(alias: send)
tmux ^1.6:
send-keys [-R] [-t target-pane] key ...
(alias: send)
tmux ^0.8:
send-keys [-t target-window] key ...
(alias: send)
Fields§
§expand_formats: bool
[-F]
- expand formats in arguments where appropriate
hex: bool
[-H]
- expect each key to be a hexadecimal number for an ASCII character
client: bool
[-K]
- keys are sent to target-client, so they are looked up in the client’s key table
disable_lookup: bool
[-l]
- disable key name lookup and processes the keys as literal UTF-8 characters
mouse_event: bool
[-M]
- pass through a mouse event
copy_mode: bool
[-R]
- cause the terminal state to be reset
reset: bool
[-X]
- send a command into copy mode
target_client: Option<Cow<'a, str>>
[-c target-client]
- specify the target client
repeat_count: Option<usize>
[-N repeat-count]
- specify a repeat count
target_pane: Option<Cow<'a, str>>
[-t target-pane]
- specify the target pane
key: Option<Cow<'a, str>>
key
Implementations§
source§impl<'a> SendKeys<'a>
impl<'a> SendKeys<'a>
pub fn new() -> Self
sourcepub fn expand_formats(self) -> Self
pub fn expand_formats(self) -> Self
[-F]
- expand formats in arguments where appropriate
sourcepub fn hex(self) -> Self
pub fn hex(self) -> Self
[-H]
- expect each key to be a hexadecimal number for an ASCII character
sourcepub fn client(self) -> Self
pub fn client(self) -> Self
[-K]
- keys are sent to target-client, so they are looked up in the client’s key table
sourcepub fn disable_lookup(self) -> Self
pub fn disable_lookup(self) -> Self
[-l]
- disable key name lookup and processes the keys as literal UTF-8 characters
sourcepub fn mouse_event(self) -> Self
pub fn mouse_event(self) -> Self
[-M]
- pass through a mouse event
sourcepub fn repeat_count(self, repeat_count: usize) -> Self
pub fn repeat_count(self, repeat_count: usize) -> Self
[-N repeat-count]
- specify a repeat count
sourcepub fn target_client<S: Into<Cow<'a, str>>>(self, target_client: S) -> Self
pub fn target_client<S: Into<Cow<'a, str>>>(self, target_client: S) -> Self
[-c target-client]
- specify the target client
sourcepub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self
pub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self
[-t target-pane]
- specify the target pane
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> From<SendKeys<'a>> for TmuxCommand<'a>
impl<'a> From<SendKeys<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for SendKeys<'a>
impl<'a> Ord for SendKeys<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl<'a> PartialEq for SendKeys<'a>
impl<'a> PartialEq for SendKeys<'a>
source§impl<'a> PartialOrd for SendKeys<'a>
impl<'a> PartialOrd for SendKeys<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more