tmuxtmuxCLI manual

Choose documentation 1

3.2a

tmux manual version

Latest (3.7c) 3.7c 3.2a
English

tmux list-clients

command tmux 3.2a

List all clients attached to the server.

Syntax

tmux list-clients [-F format] [-t target-session]

Alias: lsc.

Behavior

List all clients attached to the server. For the meaning of the -F flag, see the FORMATS section. If target-session is specified, list only clients connected to that session.

C implementation

Internal declarations in tmux 3.2a:

Use from a library

These methods send list-clients. Each describes its own defaults, errors and execution model.

Library methods that send tmux list-clients, by scope
Language Methods
Python Client.from_client_name Client.refresh Server.clients Server.list_clients
Ruby Async::Server#list_clients Async::Server#snapshot LibTmux::Server#list_clients LibTmux::Server#snapshot
Lua Server:detach_client Server:snapshot Server:switch_client
PowerShell Get-TmuxClient Get-TmuxClientAttachment
Julia snapshot a session exists
Elixir Capture.fetch/2 Server.snapshot!/2 Server.snapshot/2
Haskell capture when the server has sessions fetch when the server has sessions waitForPaneState when the server has sessions
Go Client.Refresh Client.ResolveAttachment Server.Client Server.ListClients Server.SearchClients Server.Snapshot
Clojure snapshot!
C# Client.GetAsync Client.GetAttachedPaneAsync Client.GetAttachedSessionAsync Client.GetAttachedWindowAsync Client.ResolveAttachmentAsync Server.GetClientsAsync Server.SearchClientsAsync
F# tryFindClient
C++ Server::clients
Swift Server.clients() Server.clients(where:)
OCaml capture capture
Perl Async::Server::clients Async::Server::listings kind is client Async::Server::new_session after accepted creation Async::Server::new_window after accepted creation Async::Server::query_panes Async::Server::snapshot Async::Server::split_pane after accepted creation LibTmux::Server::clients LibTmux::Server::listings kind is client LibTmux::Server::new_session after accepted creation LibTmux::Server::new_window after accepted creation LibTmux::Server::query_panes LibTmux::Server::snapshot LibTmux::Server::split_pane after accepted creation
Raku Attachment.inspect-client the child has not exited ClientRef.inspect Connection.query client query or full graph Connection.query-async client query or full graph Connection.query-panes relationship predicates require a full graph Connection.snapshot Connection.snapshot-async PaneRef.inspect Server.query client query or full graph Server.query-async client query or full graph Server.query-panes relationship predicates require a full graph Server.query-sessions relationship predicates require a full graph Server.query-window-links relationship predicates require a full graph Server.query-windows relationship predicates require a full graph Server.snapshot Server.snapshot-async SessionRef.inspect WindowRef.inspect

No method in Erlang, Common Lisp, TypeScript, Rust, Java, Kotlin, or Scala sends this command itself.

tmux sources and license

Syntax comes from tmux 3.2a list-commands. See the global options for sockets and configuration, and command syntax and targets.

Behavior is taken from the tmux 3.2a manual.

Command declaration

Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Esc

Type to search.

Reference previewOpen reference