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

pane.CaptureOptions.trim_blank_cells

Rust
  • Python 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
trim_blank_cells ( mut ) → Self
method [source]
method [source]
trim_blank_cells

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 from Self::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_wrapped implies this.

Examples

use libtmux::CaptureOptions;
let written = CaptureOptions::visible().trim_blank_cells();
assert_ne!(written, CaptureOptions::visible());

0 declared, 0 inherited

Esc

Type to search.