# libtmux.Pane.reset

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/pane.py#L2591
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-pane-reset/

```
libtmux.Pane.reset(self) -> Pane
```

Reset terminal state and clear pane history.

Sends [`send-keys -R`](/en/tmux/latest/manual/send-keys/) and [`clear-history`](/en/tmux/latest/manual/clear-history/) to the pane in one
targeted tmux command sequence so output cannot land in the
freshly-cleared grid between the terminal-state reset and the
history clear.

## Examples

```python
>>> pane.reset()
Pane(%... Window(@... ...:..., Session($1 libtmux_...)))
```

## In other ports

### Reset a pane's terminal state and drop its history

- Go: [`tmux.Pane.Reset`](/en/go/latest/reference/tmux-pane-reset/) (method)
- C#: [`LibTmux.Pane.ResetAsync`](/en/csharp/latest/reference/libtmux-pane-resetasync/) (method)
