On this page
libtmux._internal.control_mode.ControlMode
- Module
- libtmux._internal.control_mode
- Package
- libtmux
- Source
- src/libtmux/_internal/control_mode.py
-
Context manager that spawns a tmux control-mode client.
Creates a real client attached to the session, visible in
Server.list_clients(). The client communicates via the tmux control protocol on stdout.While active,
Server.list_clients()will include this client.Examples
>>> with ControlMode(server=server, session=session) as ctl: ... clients = server.list_clients() ... assert len(clients) > 0 ... assert ctl.client_name != ''Discussed in Control mode vs one-shot
9 declared, 0 inherited