libtmux Reference MCP Search
On this page

libtmux.Pane.copy_mode

View as Markdown

Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
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
method [source]
method [source]
copy_mode

Enter copy mode via $ tmux copy-mode.

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+.

0 declared, 0 inherited

Esc

Type to search.