pane.CaptureOptions.trim_blank_cells
Rust
- Python 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
-
Drop the positions at each line's end that hold no character at all.
A pane's grid is rectangular, so a short line is padded with cells that were never written. tmux includes them unless told not to; this is its
-T. Distinct fromSelf::trailing_spaces, which is about spaces a program actually printed -- one asks for the pane's shape, the other for what was written into it.Self::join_wrappedimplies this.Examples
use libtmux::CaptureOptions;let written = CaptureOptions::visible().trim_blank_cells();assert_ne!(written, CaptureOptions::visible());
0 declared, 0 inherited