Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

pane.CaptureOptions.trailing_spaces

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
pane
Declared in
CaptureOptions
Package
libtmux
Source
crates/libtmux/src/pane.rs
trailing_spaces ( mut ) → Self
method [source]
method [source]
trailing_spaces

Keep the spaces tmux would otherwise strip from each line's end.

capture-pane trims trailing spaces unless told not to, so a captured line is normally shorter than the pane is wide and a caller comparing against what a program printed sees the difference. This is tmux's -N.

Self::join_wrapped already keeps them, and additionally joins lines the pane wrapped; this keeps them without joining anything.

Examples

use libtmux::CaptureOptions;
let exact = CaptureOptions::visible().trailing_spaces();
assert_ne!(exact, CaptureOptions::visible());

0 declared, 0 inherited

Esc

Type to search.