pane.CaptureOptions.trailing_spaces
Rust
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- pane
- Declared in
- CaptureOptions
- Package
- libtmux
- Source
- crates/libtmux/src/pane.rs
-
Keep the spaces tmux would otherwise strip from each line's end.
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_wrappedalready 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