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-ts latest

Session.windows

Windows placed in this session, in listing order.

Source and package
Qualified name
Session.windows
Module
session
Declared in
Session
Package
libtmux
Source
packages/libtmux/src/session.ts
Other languages
PowerShellcmdlet Juliafunction Elixir PythonRuby Lua RustGoJavaC#C++SwiftKotlinScalaF#function
windows(): Selection<Window>

Description#

Resolved from the graph this handle was materialized against, so it issues no tmux command and reports the instant the handle came from.

Examples#

session.windows.count();
session.windows.where({ name: "editor" }).first();

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.
Rust session.Session.windows
Go tmux.Session.Windows
Java io.github.libtmux.Session.windows
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:)

No equivalent is recorded in Lua or Elixir.

Esc

Type to search.

Reference previewOpen reference