# LibTmux.Pane.ResetAsync

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

```
LibTmux.Pane.ResetAsync(cancellationToken: CancellationToken) -> Task<Pane>
```

Resets the pane's terminal state and drops its history.

Python groups the two tmux commands so nothing runs between them. This
dispatches them in turn, because the transport carries one command per
call and a trailing separator would reach tmux as data.

## Parameters

- `cancellationToken` (CancellationToken) — Cancels the tmux commands.

## Returns

A replacement handle carrying the state afterwards.
