CaptureOptions.trailing_spaces
Keep the spaces tmux would otherwise strip from each line's end.
Source and package
- Qualified name
-
libtmux::pane:: Capture Options:: trailing _spaces - Module
- pane
- Declared in
CaptureOptions- Package
- libtmux
- Source
- crates/libtmux/src/pane.rs
-
Description#
capture-panetrims 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());