Server.clients
Clients attached to this tmux server.
Source and package
- Qualified name
-
libtmux.Server. clients - Module
- libtmux
- Declared in
Server- Package
- libtmux
- Source
- src/libtmux/server.py
- Other languages
- Perlmethod Erlang PowerShellcmdlet Juliafunction Elixirfunction Haskell Common Lispfunction Ruby Lua TypeScriptRustGoJavaC#C++SwiftKotlinScalaOCamlfunction F#function Clojure
-
Description#
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_alive()orServer.raise_if_dead().Examples#
>>> with control_mode() as ctl:... names = [c.client_name for c in server.clients]... ctl.client_name in namesTrue
tmux command#
The tmux commands behind clients.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
List the server's attached clients
| Language | Equivalent |
|---|---|
| Ruby | Lib |
| PowerShell | Lib Acquires attached clients through -Server and returns shared .NET LibTmux.Client objects. |
| Julia | Lib clients reads attached clients from a captured Snapshot without contacting tmux. |
| Elixir | Lib Returns a Selection of captured attached clients without contacting tmux. |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| Common Lisp | libtmux: clients returns fresh attached-client observations from a retained snapshot. |
| TypeScript | server |
| Rust | server |
| Go | tmux |
| Java | io |
| Clojure | libtmux |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| F# | Lib Builds a deferred client query on the shared .NET LibTmux.Server. Query.list acquires attached clients. |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux Reads captured attached-client observations, separate from transport Client.t handles. |
| Perl | Lib Local captured client membership; Server::clients explicitly acquires a new graph. |
No equivalent is recorded in Lua or Erlang.