# tmux.Pane.Clear

- **Module:** tmux.Pane
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/pane_input.go#L375
- **Page:** https://libtmux.org/reference/go/tmux-pane-clear/

```
tmux.Pane.Clear(ctx: context.Context) -> error
```

Clear sends the text "reset" and then Enter to the receiver's exact linked pane. The pane's current application interprets that input; Clear does not invoke a shell itself. A transport error may leave the text delivered without Enter.
