# pane.Pane.showHooks

- **Module:** pane
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/pane.ts#L150
- **Page:** https://libtmux.org/en/ts/latest/reference/pane-pane-showhooks/

```
showHooks(): Promise<
  ReadonlyMap<string, readonly string[]>
>
```

Read hooks set on this pane itself.

## Examples

```ts
const hooks = await pane.showHooks();
hooks.get("pane-title-changed")?.[0];
```

## tmux command

The tmux commands behind `showHooks`.

- [`show-hooks`](/en/tmux/latest/manual/show-hooks/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_show_hooks_entry`](/en/tmux/latest/reference/c-variable-cmd_show_hooks_entry/) (attribute)
- [`cmd_show_options_exec`](/en/tmux/latest/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function)

## tmux hooks

Events that run tmux commands, with the scope each hook belongs to and where tmux fires it.

- [Hooks](/en/tmux/latest/catalog/hooks/) (hook)

## Guides

Pages that discuss `showHooks`.

- [Options and hooks](/en/ts/latest/topics/options-and-hooks/)

## In other ports

Read a pane's hooks

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.show_hooks`](/en/py/latest/reference/libtmux-pane-show_hooks/) (method) |
| Ruby | [`LibTmux::Pane#hooks`](/en/ruby/latest/reference/libtmux-pane-hooks/) (method) |
| Lua | [`libtmux.Pane:list_hooks`](/en/lua/latest/reference/libtmux-pane-list_hooks/) (method) |
| Rust | no whole-table read; `Pane.hook` reads one |
| Go | [`tmux.Pane.Hooks`](/en/go/latest/reference/tmux-pane-hooks/) (method) |
| Java | [`io.github.libtmux.Pane.hooks`](/en/java/latest/reference/io-github-libtmux-pane-pane-hooks/) (method) |
| C# | [`LibTmux.Pane.Hooks`](/en/csharp/latest/reference/libtmux-pane-hooks/) (property) |
| C++ | no equivalent on `Pane` |
| Swift | [`Server.hooks(_:)`](/en/swift/latest/reference/server-hooks(_-)/) (method) |

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.
