# pane.Pane.capture

- **Module:** pane.Pane
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/pane.ts#L274
- **Page:** https://libtmux.org/reference/ts/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);
```
