libtmux Reference MCP Search
On this page

libtmux.Server.lock_client

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
lock_client ( self , target_client : str | None = None ) None
method [source]
method [source]
lock_client

Lock a client via $ tmux lock-client.

Requires an attached client.

Examples

>>> with control_mode() as ctl:
...     server.lock_client()
Parameters
  • target_client ( str | None ) – Target client (-t flag).

0 declared, 0 inherited

Esc

Type to search.