pub struct SendKeys { /* private fields */ }Expand description
Typed arguments for send-keys.
Implementations§
Source§impl SendKeys
impl SendKeys
Sourcepub const fn hexadecimal(self, enabled: bool) -> Self
pub const fn hexadecimal(self, enabled: bool) -> Self
Treats each key as hexadecimal (-H).
Sourcepub const fn reset(self, enabled: bool) -> Self
pub const fn reset(self, enabled: bool) -> Self
Resets terminal state before sending input (-R).
Sourcepub fn repeat(self, count: u32) -> Result<Self>
pub fn repeat(self, count: u32) -> Result<Self>
Repeats the sequence a non-zero number of times.
Sourcepub const fn suppress_history(self, enabled: bool) -> Self
pub const fn suppress_history(self, enabled: bool) -> Self
Sends a leading space before input so shells configured accordingly omit it from history.
Sourcepub fn copy_mode_command(self, command: impl Into<OsString>) -> Self
pub fn copy_mode_command(self, command: impl Into<OsString>) -> Self
Sends a command to copy mode (-X) instead of ordinary keys.
Sourcepub const fn expand_formats(self, enabled: bool) -> Self
pub const fn expand_formats(self, enabled: bool) -> Self
Expands tmux formats in the supplied keys (-F).
Sourcepub fn target_client(self, client: ClientName) -> Self
pub fn target_client(self, client: ClientName) -> Self
Targets an attached client (-c). Requires tmux 3.4+.
Trait Implementations§
impl Eq for SendKeys
impl StructuralPartialEq for SendKeys
Auto Trait Implementations§
impl Freeze for SendKeys
impl RefUnwindSafe for SendKeys
impl Send for SendKeys
impl Sync for SendKeys
impl Unpin for SendKeys
impl UnsafeUnpin for SendKeys
impl UnwindSafe for SendKeys
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