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