tmuxtmuxCLI manual

Choose documentation 1

3.2a

tmux manual version

Latest (3.7c) 3.7c 3.2a
English

tmux list-windows

command tmux 3.2a

If -a is given, list all windows on the server.

Syntax

tmux list-windows [-a] [-F format] [-f filter] [-t target-session]

Alias: lsw.

Behavior

If -a is given, list all windows on the server. Otherwise, list windows in the current session or in target-session. -F specifies the format of each line and -f a filter. Only windows for which the filter is true are shown. See the FORMATS section.

Guides

C implementation

Internal declarations in tmux 3.2a:

Use from a library

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

Library methods that send tmux list-windows, by scope
Language Server -a cmd_list_windows_server Session -t cmd_list_windows_session
Python Server.search_windows Server.windows Window.linked_sessions Session.search_windows Session.windows Window.from_window_id Window.refresh
Ruby Async::Server#list_window_links Async::Server#list_windows Async::Server#snapshot LibTmux::Server#list_window_links LibTmux::Server#list_windows LibTmux::Server#snapshot Session#list_window_links Session#list_windows
Lua Server:snapshot
PowerShell Get-TmuxWindow
Julia snapshot a session exists observe_output
Erlang fetch/1 the server has a session fetch/2 the server has a session snapshot/1 the server has a session snapshot/2 the server has a session get/3
Elixir Server.snapshot!/2 Server.snapshot/2 Capture.fetch/2
Rust Session.search_windows Session.windows
Go Server.SearchWindows Server.Snapshot Client.ResolveAttachment Session.SearchWindows Pane.OpenObservation Running.StreamTo Server.Window Window.Refresh
Java Server.windows
Clojure snapshot!
Kotlin Server.windows
Scala cats.Server.windows scaladsl.Server.windows
C# Server.CaptureSnapshotAsync Server.GetWindowsAsync Server.SearchWindowsAsync Window.GetLinkedSessionsAsync Session.FindWindowAsync Session.GetWindowAsync Session.GetWindowsAsync Session.SearchWindowsAsync Client.GetAttachedWindowAsync
C++ Server::windows Session::windows
Swift Server.snapshot() Server.windows(where:)
OCaml capture capture
Perl Async::Server::clients Async::Server::listings kind is window 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 window 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 Server.query window/link query or full graph Server.query-async window/link 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 Server.query-windows Server.snapshot Server.snapshot-async ClientRef.inspect Connection.query window/link query or full graph Connection.query-async window/link query or full graph Connection.query-panes relationship predicates require a full graph Connection.snapshot Connection.snapshot-async PaneRef.inspect SessionRef.inspect WindowRef.inspect

No method in Haskell, Common Lisp, TypeScript, or F# 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