# libtmux.Pane.reset

- **Module:** libtmux.Pane
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/pane.py#L2610
- **Page:** https://libtmux.org/reference/py/libtmux-pane-reset/

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

Reset terminal state and clear pane history.

Sends ``send-keys -R`` and ``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.

## Example

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