Struct tmux_interface::commands::windows_and_panes::capture_pane::CapturePane[][src]

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

Manual

tmux ^3.1:

tmux capture-pane [-aepPqCJN] [-b buffer-name] [-E end-line] [-S start-line] [-t target-pane]
(alias: capturep)

tmux ^2.4:

tmux capture-pane [-aepPqCJ] [-b buffer-name] [-E end-line] [-S start-line] [-t target-pane]
(alias: capturep)

tmux ^1.8:

tmux capture-pane [-aepPq] [-b buffer-name] [-E end-line] [-S start-line] [-t target-pane]
(alias: capturep)

tmux ^1.5:

tmux capture-pane [-b buffer-index] [-E end-line] [-S start-line] [-t target-pane]
(alias: capturep)

tmux ^1.2:

tmux capture-pane [-b buffer-index] [-t target-pane]
(alias: capturep)

Implementations

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

pub fn new() -> Self[src]

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

[-a] - the alternate screen is used, and the history is not accessible

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

[-e] - the output includes escape sequences for text and background attributes

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

[-p] - the output goes to stdout

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

[-P] - capture only any output that the pane has received that is the beginning of an as-yet incomplete escape sequence

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

[-q] - quite

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

[-C] - escape non-printable characters as octal \xxx

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

[-J] - preserve trailing spaces and joins any wrapped lines

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

[-b buffer-name] - buffer-name

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

[-E end-line] - specify the ending line number

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

[-S start-line] - specify the starting line number

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

[-t target-pane] - specify target-pane

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

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for CapturePane<'a>

impl<'a> Send for CapturePane<'a>

impl<'a> Sync for CapturePane<'a>

impl<'a> Unpin for CapturePane<'a>

impl<'a> UnwindSafe for CapturePane<'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.