Struct tmux_interface::commands::status_line::command_prompt::CommandPrompt[][src]

pub struct CommandPrompt<'a>(pub TmuxCommand<'a>);

Structure for open the command prompt in a client

Manual

tmux ^3.1:

tmux command-prompt [-1ikN] [-I inputs] [-p prompts] [-t target-client] [template]

tmux ^3.0:

tmux command-prompt [-1Ni] [-I inputs] [-p prompts] [-t target-client] [template]

tmux ^2.4:

tmux command-prompt [-1i] [-I inputs] [-p prompts] [-t target-client] [template]

tmux ^1.5:

tmux command-prompt [-I inputs] [-p prompts] [-t target-client] [template]

tmux ^1.0:

tmux command-prompt [-p prompts] [-t target-client] [template]

tmux ^0.8:

tmux command-prompt [-t target-client] [template]

Implementations

impl<'a> CommandPrompt<'a>[src]

pub fn new() -> Self[src]

pub fn one_keypress(&mut self) -> &mut Self[src]

[-1] makesthe prompt only accept one key press

pub fn on_input_change(&mut self) -> &mut Self[src]

[-i] execute the command every time the prompt input changes

pub fn inputs<S: Into<Cow<'a, str>>>(&mut self, inputs: S) -> &mut Self[src]

[-I inputs] - comma-separated list of the initial text for each prompt

pub fn prompts<S: Into<Cow<'a, str>>>(&mut self, prompts: S) -> &mut Self[src]

[-p prompts] - prompts is a comma-separated list of prompts which are displayed in order

pub fn target_client<S: Into<Cow<'a, str>>>(
    &mut self,
    target_client: S
) -> &mut Self
[src]

[-t target-client] - target-client

pub fn template<S: Into<Cow<'a, str>>>(&mut self, template: S) -> &mut Self[src]

[template] - template

pub fn output(&self) -> Result<TmuxOutput, Error>[src]

Trait Implementations

impl<'a> Clone for CommandPrompt<'a>[src]

impl<'a> Debug for CommandPrompt<'a>[src]

impl<'a> Default for CommandPrompt<'a>[src]

impl<'a> From<&'_ TmuxCommand<'a>> for CommandPrompt<'a>[src]

impl<'a> From<TmuxCommand<'a>> for CommandPrompt<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for CommandPrompt<'a>

impl<'a> Send for CommandPrompt<'a>

impl<'a> Sync for CommandPrompt<'a>

impl<'a> Unpin for CommandPrompt<'a>

impl<'a> UnwindSafe for CommandPrompt<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.