# LibTmux::Pane#capture

- **Module:** LibTmux::Pane#
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c6d9d21771828e583692ca899ed817f9640d6a55/gems/libtmux/lib/libtmux/entity.rb#L169
- **Page:** https://libtmux.org/en/ruby/latest/reference/libtmux-pane-capture/

```
LibTmux::Pane#capture(start: ::Integer | ::String | nil = nil, finish: ::Integer | ::String | nil = nil, join: bool = nil, escapes: bool = nil, escape_bytes: bool = nil, preserve_trailing: bool = nil, trim_trailing: bool = nil, alternate: bool = nil, mode_screen: bool = nil, pending: bool = nil, timeout: ::Numeric = nil, cancel: untyped = nil) -> ::LibTmux::CommandResult
```

Behavior: Pane input and capture.

Behavior contract: Pane input and capture.
