# pane-mode-changed

Source: https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-mode-changed/

> The pane with ID pane-id has changed mode.

hook tmux3.2a

The pane with ID pane-id has changed mode.

* Scope

  window, pane

* Set

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

* Read

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

* Control mode

  Also sent to control clients as `%pane-mode-changed`

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

The pane with ID `pane-id` has changed mode.

This text describes the control mode notification `%pane-mode-changed`, which tmux sends when this hook fires.

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

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

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

* Defined in

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

* Fired from

  * [`window.c:1099`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L1099) in `notify_pane`
  * [`window.c:1131`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L1131) 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/#control-mode-pane-mode-changed)

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

Library documentation that names this hook.

* Rust

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

* Go

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