# libtmux.Pane:copy_command

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/entity.lua#L505
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-pane-copy_command/

```
copy_command: fun(
  self: libtmux.Pane,
  action: string,
  args?: string[],
  options?: libtmux.KeyOptions,
):libtmux.Request<boolean>
```

## Parameters

- `action` (`string`)
- `args` (`string[]?`)
- `options` (`libtmux.KeyOptions?`)

## tmux command

The tmux commands behind `copy_command`.

- [`send-keys`](/en/tmux/latest/manual/send-keys/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_send_keys_entry`](/en/tmux/latest/reference/c-variable-cmd_send_keys_entry/) (attribute)
- [`cmd_send_keys_exec`](/en/tmux/latest/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function)

## Guides

Pages that discuss `copy_command`.

- [Pane operations](/en/lua/v0.1.1/guides/panes/)
