# LibTmux::Pane#paste

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/operations.rb#L381
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-pane-paste/

```
def paste: (
  buffer: ::String,
  ?delete: bool,
  ?bracketed: bool,
  ?separator: ::String?,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Pane input and capture.

Behavior contract: Pane input and capture.

## Parameters

- `buffer` (`::String`)
- `delete` (`bool`)
- `bracketed` (`bool`)
- `separator` (`::String?`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)

## tmux command

The tmux commands behind `paste`.

- [`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)
