# pane-set-clipboard

Source: https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-set-clipboard/

> Run when the terminal clipboard is set using the xterm(1) escape sequence.

hook tmux3.2a

Run when the terminal clipboard is set using the xterm(1) escape sequence.

* Scope

  window, pane

* Set

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

* Read

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

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

Run when the terminal clipboard is set using the [xterm(1)]() escape sequence.

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

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

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

* Defined in

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

* Fired from

  * [`input.c:2686`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2686) in `notify_pane`
  * [`window-copy.c:4086`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4086) in `notify_pane`
  * [`window-copy.c:4160`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4160) 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-set-clipboard)

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

Library documentation that names this hook.

* Rust

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

* Go

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