# libtmux.Pane:copy_mode

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

```
copy_mode: fun(
  self: libtmux.Pane,
  options?: libtmux.CopyModeOptions,
):libtmux.Request<boolean>
```

## Parameters

- `options` (`libtmux.CopyModeOptions?`)

## tmux command

The tmux commands behind `copy_mode`.

- [`copy-mode`](/en/tmux/latest/manual/copy-mode/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_copy_mode_entry`](/en/tmux/latest/reference/c-variable-cmd_copy_mode_entry/) (attribute)
- [`cmd_copy_mode_exec`](/en/tmux/latest/reference/c-function-cmd-copy-mode-c-cmd_copy_mode_exec/) (function)

## In other ports

Put a pane into copy mode

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.copy_mode`](/en/py/latest/reference/libtmux-pane-copy_mode/) (method) |
| Ruby | [`LibTmux::Pane#copy_mode`](/en/ruby/latest/reference/libtmux-pane-copy_mode/) (method) |
| TypeScript | [`pane.Pane.enterCopyMode`](/en/ts/latest/reference/pane-pane-entercopymode/) (method) |
| Rust | [`pane.Pane.copy_mode`](/en/rs/latest/reference/pane-pane-copy_mode/) (method) |
| Go | [`tmux.Pane.CopyMode`](/en/go/latest/reference/tmux-pane-copymode/) (method) |
| Java | [`io.github.libtmux.Pane.copyMode`](/en/java/latest/reference/io-github-libtmux-pane-pane-copymode/) (method) |
| C# | [`LibTmux.Pane.EnterCopyModeAsync`](/en/csharp/latest/reference/libtmux-pane-entercopymodeasync/) (method) |
| C++ | [`libtmux::Pane::enter_copy_mode`](/en/cxx/latest/reference/libtmux-pane-enter_copy_mode/) (method) |
| Swift | no equivalent on `Pane` |

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.
