Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

Go API

method libtmux-go latest

Pane.CopyMode

CopyMode enters or cancels copy mode using the receiver's exact linked session-window-pane target. PageDown requires tmux 3.5 and follows UnsupportedPolicy. A version-probe error stops the operation. tmux resolves the receiver and optional SourcePane before processing Cancel; a stale target can therefore fail without resetting the current mode. Cancel then takes precedence over other actions.

Source and package
Qualified name
tmux.Pane.CopyMode
Package
tmux
Declared in
Pane
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/pane_modes.go
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustJavaC#C++ Swift Kotlin Scala OCaml F# Clojure

Description#

Only stderr produces a redacted CommandError; nonzero exits without stderr are ignored. Accepted mode changes are not rolled back.

tmux command#

The tmux commands behind CopyMode.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Put a pane into copy mode

Equivalents of Put a pane into copy mode in other languages
Language Equivalent
Python libtmux.Pane.copy_mode
Ruby LibTmux::Pane#copy_mode
Lua libtmux.Pane:copy_mode
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript pane.Pane.enterCopyMode
Rust pane.Pane.copy_mode
Java io.github.libtmux.Pane.copyMode
C# LibTmux.Pane.EnterCopyModeAsync
C++ libtmux::Pane::enter_copy_mode
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#.

Esc

Type to search.

Reference previewOpen reference