Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-go latest

Session.Windows

Windows returns newly allocated shallow copies of this snapshot record's winlink views, and reports whether the receiver carries relations at all.

Source and package
Qualified name
tmux.Session.Windows
Package
tmux
Declared in
Session
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/model.go
Other languages
Perl Erlangfunction PowerShellcmdlet Juliafunction Elixir Haskell Common Lispfunction PythonRuby Lua TypeScriptRustJavaC#C++SwiftKotlinScalaOCamlfunction F#function Clojurefunction
func (s Session) Windows() ([]Window, bool)

Description#

It never queries tmux. Server.Snapshot and the resolvers carry relations; a targeted lookup, refresh, or creation reports false rather than an empty relation. Use Session.SearchWindows for current live windows.

Guides#

Pages that discuss Windows.

In other ports#

List a session's windows

Equivalents of List a session's windows in other languages
Language Equivalent
Python libtmux.Session.windows
Ruby LibTmux::Session#list_windows
PowerShell LibTmux\Get-TmuxWindow Use the -Session parameter set to acquire placements in one session.
Julia LibTmux.windows windows with a captured SessionSnapshot reads distinct physical windows in that session. Use windowlinks for placements.
Erlang tmux_snapshot:related/3 Pass windows, a captured session and its snapshot for a local relationship read.
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
Common Lisp libtmux:windows windows traverses a captured session. Repeated links preserve their physical-window multiplicity.
TypeScript session.Session.windows
Rust session.Session.windows
Java io.github.libtmux.Session.windows
Clojure libtmux.data/windows Traverses one capture locally. It does not issue a list-windows command.
Kotlin io.github.libtmux.kotlin.Session.windows
Scala io.github.libtmux.scaladsl.Session.windows
C# LibTmux.Session.Windows
F# LibTmux.FSharp.Session.windows Builds a deferred window query from one LibTmux.Session and its server. Query.list acquires placements scoped to that session ID.
C++ libtmux::Session::windows
Swift Snapshot.windows(of:)
OCaml Libtmux.Session.windows Reads distinct captured global windows in this session. window_links preserves individual indexed placements.
Perl Traverse Session::window_links and resolve each link’s window, preserving explicit session placement and multiplicity.

No equivalent is recorded in Lua or Elixir.

Esc

Type to search.

Reference previewOpen reference