Server.clients
Clients attached to this tmux server.
Source and package
-
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_aliveorServer.raise_if_dead.Examples#
>>> with control_mode() as ctl:... names = [c.client_name for c in server.clients]... ctl.client_name in namesTruetmux command
list-clientsIn other ports List the server's attached clients
- PowerShell
LibTmux\Get-TmuxClientAcquires attached clients through
-Serverand returns shared .NETLibTmux.Clientobjects. - Julia
LibTmux.clientsclientsreads attached clients from a capturedSnapshotwithout contacting tmux. - Ruby
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
- Rust
- Go
- Java
- C#
- C++
- Swift
- Kotlin
- Scala
- F#
LibTmux.FSharp.Server.clientsBuilds a deferred client query on the shared .NET
LibTmux.Server.Query.listacquires attached clients.
- PowerShell