Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

method libtmux stable

Pane.copy_mode

Enter copy mode via $ tmux copy-mode.

Source and package
Qualified name
libtmux.Pane.copy_mode
Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
Other languages
PowerShell Julia RubyLuaTypeScriptRustGoJavaC#C++ Swift Kotlin Scala F#
copy_mode ( self, scroll_up: bool | None = None, exit_on_bottom: bool | None = None, mouse_drag: bool | None = None, cancel: bool | None = None, page_down: bool | None = None, source_pane: str | None = None, ) → None

Examples#

>>> pane.copy_mode()
Parameters
  • scroll_up (bool | None) # – Start scrolled up one page (-u flag).

  • exit_on_bottom (bool | None) # – Exit copy mode when scrolling reaches the bottom of the history (-e flag).

  • mouse_drag (bool | None) # – Start mouse drag (-M flag).

  • cancel (bool | None) # – Cancel copy mode and any other modes (-q flag).

  • page_down (bool | None) # – Scroll a page down if already in copy mode (-d flag). Requires tmux 3.5+.

  • source_pane (str | None) # – Source pane whose contents should be displayed in copy mode (-s flag). Lets you scroll/copy from another pane's history. Requires tmux 3.2+.

tmux command copy-mode

In other ports Put a pane into copy mode
Esc

Type to search.

Reference preview Open reference