libtmux Reference MCP Search
On this page

libtmux.Pane.pipe

View as Markdown

Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
pipe ( self , command : str | None = None , output_only : bool | None = None , input_only : bool | None = None , toggle : bool | None = None ) None
method [source]
method [source]
pipe

Pipe pane output to a shell command via $ tmux pipe-pane.

Examples

>>> pane.pipe('cat >> /tmp/output.txt')

Stop piping:

>>> pane.pipe()
Parameters
  • command ( str | None ) – Shell command to pipe to. If None, stops piping.

  • output_only ( bool | None ) – Only pipe output from the pane (-O flag).

  • input_only ( bool | None ) – Only pipe input to the pane (-I flag).

  • toggle ( bool | None ) – Toggle piping on/off (-o flag).

0 declared, 0 inherited

Esc

Type to search.