# pane-focus-in

Source: https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-in/

> Run when the focus enters a pane, if the focus-events option is on.

hook tmux3.2a

Run when the focus enters a pane, if the focus-events option is on.

* Scope

  window, pane

* Set

  [`set-hook`](https://libtmux.org/en/tmux/3.2a/manual/set-hook/) `pane-focus-in command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/3.2a/manual/show-hooks/) `pane-focus-in`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-in/#description)

Run when the focus enters a pane, if the [`focus-events`](https://libtmux.org/en/tmux/3.2a/catalog/options/focus-events/) option is on.

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-in/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/hooks/pane-focus-in/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-in/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-in/#source)

* Defined in

  [`options-table.c:1139`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L1139)

* Fired from

  * [`server-client.c:1653`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1653) in `notify_pane`

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.2a/reference/c-variable-options_table/), [`notify_pane`](https://libtmux.org/en/tmux/3.2a/reference/c-function-notify_pane/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#hooks-pane-focus-in)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-in/#used-by)

Library documentation that names this hook.

* Python

  [`libtmux_mcp.tools.hook_tools.show_hooks`](https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-tools-hook_tools-show_hooks/)

* Rust

  [`options.generated.PANE_FOCUS_IN`](https://libtmux.org/en/rs/latest/reference/options-generated-pane_focus_in/)

* Go

  [`tmux.PaneHookValues.PaneFocusIn`](https://libtmux.org/en/go/latest/reference/tmux-panehookvalues-panefocusin/), [`tmux.WindowHookValues.PaneFocusIn`](https://libtmux.org/en/go/latest/reference/tmux-windowhookvalues-panefocusin/)

* Java

  [`io.github.libtmux.Hooks`](https://libtmux.org/en/java/latest/reference/io-github-libtmux-hooks-hooks/)
