# LibTmux::Pane#copy_command

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c8b839595d5a30e271e3f9be0d0fe811ddb11b7e/gems/libtmux/lib/libtmux/operations.rb#L419
- **Page:** https://libtmux.org/en/ruby/v0.1.0/reference/libtmux-pane-copy_command/

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

```
def copy_command: (
  ::String,
  *::String,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Copy mode.

Behavior contract: Copy mode.

## Parameters

- `arg1` (`::String`)
- `args` (`::String`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)
