# LibTmux::Model::PaneRef.reset

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Model.rakumod#L469
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-paneref-reset/

```
method reset(--> Result:D)
```

Reset terminal state and clear history in one tmux queue; failure can leave partial effects.

Reset terminal state and clear history in one tmux queue; failure can leave partial effects.

## tmux command

The tmux commands behind `reset`.

- [`clear-history`](/en/tmux/latest/manual/clear-history/)
- [`if-shell`](/en/tmux/latest/manual/if-shell/)
- [`send-keys`](/en/tmux/latest/manual/send-keys/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_clear_history_entry`](/en/tmux/latest/reference/c-variable-cmd_clear_history_entry/) (attribute)
- [`cmd_capture_pane_exec`](/en/tmux/latest/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_exec/) (function)
- [`cmd_if_shell_entry`](/en/tmux/latest/reference/c-variable-cmd_if_shell_entry/) (attribute)
- [`cmd_if_shell_exec`](/en/tmux/latest/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function)
- [`cmd_send_keys_entry`](/en/tmux/latest/reference/c-variable-cmd_send_keys_entry/) (attribute)
- [`cmd_send_keys_exec`](/en/tmux/latest/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function)

## In other ports

Reset a pane's terminal state and drop its history

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.reset`](/en/py/latest/reference/libtmux-pane-reset/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on `Pane` |
| Rust | no equivalent on `Pane` |
| Go | [`tmux.Pane.Reset`](/en/go/latest/reference/tmux-pane-reset/) (method) |
| Java | no equivalent on `Pane` |
| C# | [`LibTmux.Pane.ResetAsync`](/en/csharp/latest/reference/libtmux-pane-resetasync/) (method) |
| C++ | no equivalent on `Pane` |
| Swift | no equivalent on `Pane` |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
