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

libtmux._internal.control_mode.ControlMode

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
libtmux._internal.control_mode
Package
libtmux
Source
src/libtmux/_internal/control_mode.py
class libtmux._internal.control_mode.ControlMode
class [source]
class [source]
class libtmux._internal.control_mode.ControlMode

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

Members

Esc

Type to search.