# libtmux.Pane.paste_buffer

- **Module:** libtmux.Pane
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/pane.py#L1864
- **Page:** https://libtmux.org/reference/py/libtmux-pane-paste_buffer/

```
libtmux.Pane.paste_buffer(self, buffer_name: str | None = None, delete_after: bool | None = None, linefeed_separator: bool | None = None, bracket: bool | None = None, separator: str | None = None, no_vis: bool | None = None) -> None
```

Paste a buffer into the pane via ``$ tmux paste-buffer``.

## Parameters

- `self`
- `buffer_name` (str | None) — Name of the buffer to paste (``-b`` flag).
- `delete_after` (bool | None) — Delete the buffer after pasting (``-d`` flag).
- `linefeed_separator` (bool | None) — Use newline as the line separator instead of carriage return
(``-r`` flag).
- `bracket` (bool | None) — Use bracketed paste mode (``-p`` flag).
- `separator` (str | None) — Separator between lines (``-s`` flag).
- `no_vis` (bool | None) — Paste the buffer's raw bytes without passing them through
``vis(3)`` escaping (``-S`` flag). tmux 3.7 escapes pasted
content by default; set this to restore the raw behaviour.
Requires tmux 3.7+. If used with tmux < 3.7, a warning is issued
and the flag is ignored.

## Example

```python
>>> server.set_buffer('pasted_text')
>>> pane.paste_buffer()
```
