# focus-events

Source: https://libtmux.org/en/tmux/3.7c/catalog/options/focus-events/

> When enabled, focus events are requested from the terminal if supported and passed through to applications running in tmux.

option tmux3.7c

When enabled, focus events are requested from the terminal if supported and passed through to applications running in tmux.

* Scope

  server

* Type

  Flag (on or off)

* Default

  `off`

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.7c/manual/set-option/) `-s focus-events value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.7c/manual/show-options/) `-s focus-events`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/options/focus-events/#description)

When enabled, focus events are requested from the terminal if supported and passed through to applications running in `tmux`. Attached clients should be detached and attached again after changing this option.

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/options/focus-events/#releases)

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

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/options/focus-events/#source)

* Defined in

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

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.7c/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#options-focus-events)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/options/focus-events/#used-by)

Library documentation that names this option.

* Rust

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

* Go

  [`tmux.Server.SetFocusEvents`](https://libtmux.org/en/go/latest/reference/tmux-server-setfocusevents/), [`tmux.ServerOptionValues.FocusEvents`](https://libtmux.org/en/go/latest/reference/tmux-serveroptionvalues-focusevents/)
