# get-clipboard

Source: https://libtmux.org/en/tmux/latest/catalog/options/get-clipboard/

> Controls the behaviour when an application requests the clipboard from tmux.

option tmux3.7c

Controls the behaviour when an application requests the clipboard from tmux.

* Scope

  server

* Type

  Choice

* Default

  `buffer`

* Values

  `off` `buffer` `request` `both`

* Set

  [`set-option`](https://libtmux.org/en/tmux/latest/manual/set-option/) `-s get-clipboard value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/latest/manual/show-options/) `-s get-clipboard`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/options/get-clipboard/#description)

Controls the behaviour when an application requests the clipboard from `tmux`.

If `off`, the request is ignored; if `buffer`, `tmux` responds with the newest paste buffer; `request` causes `tmux` to request the clipboard from the most recently used client (if possible) and send the reply (if any) back to the application; `both` is the same as `request` but also creates a paste buffer.

See also the [`set-clipboard`](https://libtmux.org/en/tmux/latest/catalog/options/set-clipboard/) option.

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/options/get-clipboard/#releases)

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

## Source[#](https://libtmux.org/en/tmux/latest/catalog/options/get-clipboard/#source)

* Defined in

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

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#options-get-clipboard)

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/options/get-clipboard/#used-by)

Library documentation that names this option.

* Python

  [`libtmux.Server.refresh_client`](https://libtmux.org/en/py/latest/reference/libtmux-server-refresh_client/)

* Rust

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

* Go

  [`tmux.GetClipboard`](https://libtmux.org/en/go/latest/reference/tmux-getclipboard/), [`tmux.Server.SetGetClipboard`](https://libtmux.org/en/go/latest/reference/tmux-server-setgetclipboard/), [`tmux.ServerOptionValues.GetClipboard`](https://libtmux.org/en/go/latest/reference/tmux-serveroptionvalues-getclipboard/)
