# pane-set-clipboard

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

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

hook tmux3.7c

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

* Scope

  window, pane

* Set

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

* Read

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

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

* Defined in

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

* Fired from

  * [`input.c:3294`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L3294) in `notify_pane`
  * [`window-copy.c:5501`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5501) in `notify_pane`
  * [`window-copy.c:5586`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5586) 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/#hooks-pane-set-clipboard)

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