# libtmux::Pane::paste

- **Module:** libtmux::Pane
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/entities.hpp#L716
- **Page:** https://libtmux.org/reference/cxx/libtmux-pane-paste/

```
libtmux::Pane::paste(buffer: const Buffer &, consume: bool = false) -> expected< void, CommandFailure >
```

Deliver a buffer's text to this pane, as if it had been typed.

The text arrives on the command line and is not run: a caller wanting it executed sends Enter afterwards, which is the same distinction `send_text` draws.

`consume` is tmux's `-d`, deleting the buffer once it has been pasted, which is what a caller treating it as a one-shot transfer wants.
