# pane-mode-changed

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

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

hook tmux3.7c

The pane with ID pane-id has changed mode.

* Scope

  window, pane

* Set

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

* Read

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

* Control mode

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

## Description[#](https://libtmux.org/en/tmux/latest/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/latest/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/latest/catalog/hooks/pane-mode-changed/#source)

* Defined in

  [`options-table.c:1698`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L1698)

* Fired from

  * [`window.c:1256`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1256) in `notify_pane`
  * [`window.c:1292`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1292) in `notify_pane`

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#control-mode-pane-mode-changed)

## Used by[#](https://libtmux.org/en/tmux/latest/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/)
