# LibTmux.Server.pasteBuffer

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Server.hs#L957
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-server-v-pastebuffer/

```haskell
pasteBuffer
  :: Server
  -> PaneRef
  -> ByteString
  -> PasteNewlines
  -> IO ()
```

Signature types: [`Server`](/en/haskell/latest/reference/libtmux-server-t-server/), [`PaneRef`](/en/haskell/latest/reference/libtmux-snapshot-t-paneref/), [`ByteString`](https://hackage.haskell.org/package/bytestring-0.12.2.0/docs/Data-ByteString.html#t:ByteString), [`PasteNewlines`](/en/haskell/latest/reference/libtmux-pane-t-pastenewlines/), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO).

Paste the current bytes of a named buffer into the exact pane. The
 newline policy controls line feeds. Observe the pane separately for proof
 of application input or output.

## Referenced declarations

- [`LibTmux.Snapshot.PaneRef`](/en/haskell/latest/reference/libtmux-snapshot-t-paneref/) (data type)
- [`LibTmux.Pane.PasteNewlines`](/en/haskell/latest/reference/libtmux-pane-t-pastenewlines/) (data type)
- [`LibTmux.Server.Server`](/en/haskell/latest/reference/libtmux-server-t-server/) (data type)

## tmux command

The tmux commands behind `pasteBuffer`.

- [`paste-buffer`](/en/tmux/latest/manual/paste-buffer/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_paste_buffer_entry`](/en/tmux/latest/reference/c-variable-cmd_paste_buffer_entry/) (attribute)
- [`cmd_paste_buffer_exec`](/en/tmux/latest/reference/c-function-cmd-paste-buffer-c-cmd_paste_buffer_exec/) (function)

## Guides

Pages that discuss `pasteBuffer`.

- [Transfer and paste buffers](/en/haskell/latest/guides/buffers/)
- [Implementation status](/en/haskell/latest/guides/status/)
