On this page
libtmux.Server.clients
- Module
- libtmux
- Declared in
- Server
- Package
- libtmux
- Source
- src/libtmux/server.py
-
Clients attached to this tmux server.
Each attached terminal is a separate
Client.server.clientsreturns the typed view;client.client_readonly,client.client_termtype,client.client_sessionetc. read tmux'sclient_*format tokens.Returns an empty
QueryListwhen tmux'slist-clientsfails for any reason — no running daemon, a missing socket, a permission error, or a subprocess failure. To distinguish "no clients attached" from "tmux unreachable", callServer.is_aliveorServer.raise_if_dead.Examples
>>> with control_mode() as ctl: ... names = [c.client_name for c in server.clients] ... ctl.client_name in names True
0 declared, 0 inherited