libtmux Reference MCP Search
On this page

libtmux.Session.detach_client

View as Markdown

Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/session.py
detach_client ( self , shell_command : str | None = None ) None
method [source]
method [source]
detach_client

Detach every client attached to this session.

Maps to $ tmux detach-client -s <session_id> — the only detach-client flag group that is genuinely session-scoped.

Examples

>>> with control_mode() as ctl:
...     session.detach_client()
Parameters
  • shell_command ( str | None ) – Run a shell command on the detached client(s) after detach (-E flag).

0 declared, 0 inherited

Esc

Type to search.