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.Panes

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

Source and package
Qualified name
tmux.Session.Panes
Package
tmux
Declared in
Session
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/model.go
Other languages
Perl Erlang PowerShellcmdlet Julia Elixir Haskell Common Lispfunction PythonRuby Lua TypeScriptRust Java C#C++Swift Kotlin Scala OCaml F#function Clojure
func (s Session) Panes() ([]Pane, 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.SearchPanes for current live panes.

Guides#

Pages that discuss Panes.

Topics

In other ports#

List a session's panes

Equivalents of List a session's panes in other languages
Language Equivalent
Python libtmux.Session.panes
Ruby LibTmux::Session#list_panes
PowerShell LibTmux\Get-TmuxPane Use the -Session parameter set to acquire panes across that session’s windows.
Julia Traverse windows(session) and panes(window) in the captured snapshot. panes(snapshot) has server-wide scope.
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
Common Lisp libtmux:panes panes traverses captured observations; applying it to a session returns panes reachable through its retained links.
TypeScript session.Session.panes
Rust session.Session.panes
Java no direct accessor; traverse Session.windows and Window.panes
C# LibTmux.Session.Panes
F# LibTmux.FSharp.Session.panes Builds a deferred pane query from one LibTmux.Session and its server. Query.list acquires panes across that session’s windows.
C++ libtmux::Session::panes
Swift Snapshot.panes(of:)
OCaml Traverse Session.windows and Window.panes in the captured graph. Snapshot.panes has server-wide scope.
Perl Traverse the session’s window links and physical windows; choose explicitly whether repeated linked panes should repeat.

No equivalent is recorded in Lua, Erlang, Elixir, Clojure, Kotlin or Scala.

Esc

Type to search.

Reference previewOpen reference