Pane.copy_mode
Enter copy mode via $ tmux copy-mode.
Source and package
-
Examples#
>>> pane.copy_mode()- Parameters
-
-
scroll_up(bool | None) # – Start scrolled up one page (-uflag). -
exit_on_bottom(bool | None) # – Exit copy mode when scrolling reaches the bottom of the history (-eflag). -
mouse_drag(bool | None) # – Start mouse drag (-Mflag). -
cancel(bool | None) # – Cancel copy mode and any other modes (-qflag). -
page_down(bool | None) # – Scroll a page down if already in copy mode (-dflag). Requires tmux 3.5+. -
source_pane(str | None) # – Source pane whose contents should be displayed in copy mode (-sflag). Lets you scroll/copy from another pane's history. Requires tmux 3.2+.
-
tmux command#
The tmux commands behind copy_mode.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Put a pane into copy mode
| Language | Equivalent |
|---|---|
| Ruby | Lib |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| 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#.