# LibTmux.Pane.CaptureToBufferAsync

- **Module:** LibTmux.Pane
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Pane.Capture.cs#L30
- **Page:** https://libtmux.org/reference/dotnet/libtmux-pane-capturetobufferasync/

```
LibTmux.Pane.CaptureToBufferAsync(bufferName: string, request: CapturePaneRequest?, cancellationToken: CancellationToken) -> Task
```

Captures the pane's contents into a tmux buffer.

## Parameters

- `bufferName` (string) — The buffer to write.
- `request` (CapturePaneRequest?) — What to capture.
- `cancellationToken` (CancellationToken) — Cancels the tmux command.
