# pane.CaptureOptions.pending_escape

- **Module:** pane.CaptureOptions
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/pane.rs#L1560
- **Page:** https://libtmux.org/en/rs/latest/reference/pane-captureoptions-pending_escape/

```
pane.CaptureOptions.pending_escape(mut) -> Self
```

Capture the escape sequence the pane has begun but not finished.

tmux's `-P`, and narrower than it sounds: the answer is only the bytes
of an escape sequence that arrived incomplete, not output waiting to be
drawn. A pane in the middle of nothing answers with nothing. It
diagnoses a program that stopped mid-sequence; it is not a way to read
output early.

## Example

```rust
use libtmux::CaptureOptions;

let partial = CaptureOptions::visible().pending_escape();
assert_ne!(partial, CaptureOptions::visible());
```
