pub struct CapturePane<'a> {
Show 13 fields pub alternate_screen: bool, pub escape_sequences: bool, pub stdout: bool, pub pane: bool, pub quiet: bool, pub escape_non_printable: bool, pub join: bool, pub trailing_spaces: bool, pub ignore_trailing_positions: bool, pub buffer_name: Option<Cow<'a, str>>, pub end_line: Option<Cow<'a, str>>, pub start_line: Option<Cow<'a, str>>, pub target_pane: Option<Cow<'a, str>>,
}
Expand description

§Manual

tmux ^3.4:

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

tmux ^3.1:

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

tmux ^2.4:

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

tmux ^1.8:

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

tmux ^1.5:

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

tmux ^1.2:

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

Fields§

§alternate_screen: bool

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

§escape_sequences: bool

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

§stdout: bool

[-p] - the output goes to stdout

§pane: bool

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

§quiet: bool

[-q] - quiet

§escape_non_printable: bool

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

§join: bool

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

§trailing_spaces: bool

[-N] - preserves trailing spaces at each line’s end

§ignore_trailing_positions: bool

[-T] - ignores trailing positions that do not contain a character

§buffer_name: Option<Cow<'a, str>>

[-b buffer-name] - buffer-name

§end_line: Option<Cow<'a, str>>

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

§start_line: Option<Cow<'a, str>>

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

§target_pane: Option<Cow<'a, str>>

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

Implementations§

source§

impl<'a> CapturePane<'a>

source

pub fn new() -> Self

source

pub fn alternate_screen(self) -> Self

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

source

pub fn escape_sequences(self) -> Self

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

source

pub fn stdout(self) -> Self

[-p] - the output goes to stdout

source

pub fn pane(self) -> Self

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

source

pub fn quiet(self) -> Self

[-q] - quiet

source

pub fn escape_non_printable(self) -> Self

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

source

pub fn join(self) -> Self

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

source

pub fn trailing_spaces(self) -> Self

[-N] - preserves trailing spaces at each line’s end

source

pub fn ignore_trailing_positions(self) -> Self

[-T] - ignores trailing positions that do not contain a character

source

pub fn buffer_name<S: Into<Cow<'a, str>>>(self, buffer_name: S) -> Self

[-b buffer-name] - buffer-name

source

pub fn end_line<S: Into<Cow<'a, str>>>(self, end_line: S) -> Self

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

source

pub fn start_line<S: Into<Cow<'a, str>>>(self, start_line: S) -> Self

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

source

pub fn target_pane<S: Into<Cow<'a, str>>>(self, target_pane: S) -> Self

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

source

pub fn build(self) -> TmuxCommand<'a>

Trait Implementations§

source§

impl<'a> Clone for CapturePane<'a>

source§

fn clone(&self) -> CapturePane<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for CapturePane<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Default for CapturePane<'a>

source§

fn default() -> CapturePane<'a>

Returns the “default value” for a type. Read more
source§

impl<'a> From<CapturePane<'a>> for TmuxCommand<'a>

source§

fn from(item: CapturePane<'a>) -> Self

Converts to this type from the input type.
source§

impl<'a> Hash for CapturePane<'a>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> Ord for CapturePane<'a>

source§

fn cmp(&self, other: &CapturePane<'a>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<'a> PartialEq for CapturePane<'a>

source§

fn eq(&self, other: &CapturePane<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> PartialOrd for CapturePane<'a>

source§

fn partial_cmp(&self, other: &CapturePane<'a>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a> Eq for CapturePane<'a>

source§

impl<'a> StructuralPartialEq for CapturePane<'a>

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.