# pane.Pane.capture

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/pane.ts#L283
- **Page:** https://libtmux.org/en/ts/latest/reference/pane-pane-capture/

```
pane.Pane.capture(options: : CaptureOptions) -> Promise<readonly string[]>
```

Capture this pane's contents as lines.

## Example

```ts
const lines = await pane.capture();
lines.at(-1);
```
