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

Python API

Python documentation

View as Markdown

Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
Other languages
Ruby Lua TypeScriptRustGoJava.NETC++Swift
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.

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

In other ports Copy a pane's output to a shell command

Examples

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

Stop piping:

>>> pane.pipe()
await pane.pipeTo("cat >> /tmp/build.log");

0 declared, 0 inherited

Esc

Type to search.