# LibTmux::Model::PaneRef.copy-mode

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Model.rakumod#L476
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-paneref-copy-mode/

```
method copy-mode(Bool :$page-up = False, Bool :$exit-at-bottom = False --> Result:D)
```

Enter copy mode, optionally paging upward or exiting when scrolling to the bottom.

Enter copy mode, optionally paging upward or exiting when scrolling to the bottom.

## Parameters

- `$page-up?` (`Bool`)
- `$exit-at-bottom?` (`Bool`)

## 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) |
| Lua | [`libtmux.Pane:copy_mode`](/en/lua/latest/reference/libtmux-pane-copy_mode/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| 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` |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
