Core Library0.xAPI reference

Choose documentation 2

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.

MoreLess about this notice

cmdlet libtmux-powershell

LibTmux.Get-TmuxPane

Read panes from a server, session or window.

Source and package
Qualified name
LibTmux\Get-TmuxPane
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxPaneCommand.cs
Server (default): Get-TmuxPane [-Server] <LibTmux.Server> [-Id <System.String>] [<CommonParameters>]Session: Get-TmuxPane [-Session] <LibTmux.Session> [-Id <System.String>] [<CommonParameters>]Window: Get-TmuxPane [-Window] <LibTmux.Window> [-Id <System.String>] [<CommonParameters>]

Description

Acquire panes from the native owning object. Id is an ordinal literal selector. Linked windows can expose multiple contextual placements of one physical pane. Use native Where-Object over the returned captured properties for local selection.

What is on here. A pane is the native LibTmux.Pane that Get-TmuxPane returns. The cmdlets below return one, take one directly or from the pipeline, or query for one. They fall into a few groups:

Finding panes
Get-TmuxPane lists the panes of a server, a session or a window, or the one that matches an exact id. Update-TmuxPane reads a pane again into a new capture. Get-TmuxSnapshot captures panes with the windows and sessions that hold them, and Get-TmuxClientAttachment resolves the pane a client is viewing.
Filtering and querying panes
Select-TmuxPane filters panes you already captured without contacting tmux, and can require exactly one match. New-TmuxQuery builds criteria for the Pane target and Get-TmuxQueryField lists the fields they accept. Invoke-TmuxQuery acquires fresh panes instead.
Splitting, resizing and removing a pane
Split-TmuxPane splits a pane and returns the new one. Set-TmuxPaneSize resizes a pane in cells or percent, by an edge, or toggles its zoom. Remove-TmuxPane deletes a pane; removing the last pane of a window destroys the window.
Sending input and running commands
Send-TmuxText types literal text, and adds Enter only when you ask. Send-TmuxKey sends tmux key tokens such as C-a or Enter. Invoke-TmuxPaneCommand runs a shell command in the pane and returns its exit status; a nonzero status is a result, not an error.
Reading what a pane shows
Get-TmuxPaneContent captures the rendered text, and its history when you ask. Wait-TmuxPaneText waits for text to appear. A timeout or a pane that exits comes back as an outcome of the wait, not as an error.

Notes

CurrentCommand and CurrentPath read captured data without I/O. Zero results emit nothing; one emits one object; many emit separate objects. Use @() for a stable array.

Command details

Command type
cmdlet
Default parameter set
Server
Positional binding
Enabled.
Pipeline inputs
LibTmux.Server: Native pipeline type for this command.; LibTmux.Session: Native pipeline type for this command.; LibTmux.Window: Native pipeline type for this command.
Outputs
LibTmux.Pane
Parameters
Common parameters 12

PowerShell supplies these parameters. See common parameter behavior for their effects.

Returns

LibTmux.Pane: Native pipeline type for this command.

Examples

Example 1 List panes on the existing server identified by $SocketPath. View source

Terminal window
LibTmux\New-TmuxServer -SocketPath $SocketPath | LibTmux\Get-TmuxPane

Same owner

containment 1 of 58 shown

Other members of LibTmux whose names share Get-TmuxPane. They sit on the same type; that does not make them behave alike.

All 58 members of LibTmux

Recorded calls

source calls
No call edges in the PowerShell model.

The PowerShell reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux\Get-TmuxPane.

tmux command

task material

The tmux commands behind Get-TmuxPane.

tmux C API

task material

The C declarations in tmux that implement these commands.

Guides

task material

Pages that discuss Get-TmuxPane.

In other ports

task equivalence

Source-verified mappings for A tmux pane. 22 other ports mapped. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

A tmux pane in each port
PortAPIDiffers from PowerShell
PowerShell LibTmux\Get-TmuxPane
Read panes from a server, session or window.
This page
Python libtmux.Pane
tmux(1) Pane [pane_manual].
None recorded in the model
Ruby LibTmux::Pane None recorded in the model
Lua libtmux.Pane None recorded in the model
Julia LibTmux.PaneSnapshot
PaneSnapshot holds captured pane data. Actions use its PaneRef; PaneOccurrence adds a window placement in a session.
Erlang #tmux_model:pane{} None recorded in the model
Elixir LibTmux.Pane
An immutable physical pane. It belongs to a window; text may be empty.
Pane is an immutable physical pane observation. It does not send keys or capture text.
Haskell LibTmux.Snapshot.Pane
Detached physical pane. Its window can appear in several session contexts; PaneOccurrence preserves an appearance without duplicating physical identity.
Pane is a detached physical pane. PaneOccurrence keeps the window placement it was seen in, and operations take a generation-bound PaneRef.
Common Lisp libtmux:pane
A physical pane belonging to one captured window.
pane is an immutable captured physical pane.
TypeScript pane.Pane
One pane on one tmux server, as a handle rather than a copy of it.
None recorded in the model
Rust pane.Pane
One tmux pane, as reached through one window link.
None recorded in the model
Go tmux.Pane
Pane is one materialized pane record within a specific winlink. It is normally returned by Server.Snapshot, Server.Pane, or Pane.Refresh. A zero Pane is not a usable tmux target.
None recorded in the model
Java io.github.libtmux.Pane
One tmux pane, as one capture saw it.
readonly
Clojure libtmux.data/panes
Returns captured pane occurrences in a snapshot, session, or window.
Traverses captured pane maps without I/O. Use keyword lookup for scalar observations and the preserved :tmux/ref for effects.
Kotlin io.github.libtmux.kotlin.Pane
A tmux pane, with operations for input, output, and layout.
None recorded in the model
Scala io.github.libtmux.scaladsl.Pane
A captured pane occurrence, opaque over the Java handle. Java equality identifies the physical pane; every operation beyond that is an extension, generated from the operation catalog or handwritten where the catalog marks it WAIT, STREAM or LIFECYCLE.
None recorded in the model
C# LibTmux.Pane
Represents an immutable pane handle and snapshot.
None recorded in the model
F# LibTmux.FSharp.Pane
Reads captured pane fields and starts explicit pane operations.
This F# module reads captured fields and starts explicit operations on the shared .NET LibTmux.Pane type.
C++ libtmux::Pane
One pane, as one listing saw it.
None recorded in the model
Swift Pane
A tmux pane, as it was when the listing was read.
None recorded in the model
OCaml Libtmux.Pane.t None recorded in the model
Perl LibTmux::Pane
Captured pane entity
A physical pane retains its captured graph, without retaining transport.
Raku LibTmux::Model::Pane
Captured pane fields and its local physical-window relationship.
None recorded in the model

Source-verified mappings for List a window's panes. 19 other ports mapped. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

List a window's panes in each port
PortAPIDiffers from PowerShell
PowerShell LibTmux\Get-TmuxPane
Read panes from a server, session or window.
This page
Python libtmux.Window.panes
Panes contained by window.
None recorded in the model
Ruby LibTmux::Window#list_panes
Behavior: Live acquisition.
None recorded in the model
Julia LibTmux.panes
panes with a captured WindowSnapshot reads panes in that window; missing coverage is an error.
Erlang tmux_snapshot:related/3
Traverse a complete captured relationship without I/O. To-many relations return lists; to-one relations return a row or known absence. The input row must belong to this snapshot. Unloaded relations and mismatched rows return tagged errors.
Pass panes, a captured physical window and its snapshot for a local relationship read.
Common Lisp libtmux:panes
Return a fresh vector of captured physical panes, without I/O. Snapshots preserve first occurrence; windows preserve the captured pane order.
panes traverses a captured window without contacting tmux.
TypeScript window.Window.panes
Panes of this window placement; a linked window keeps each set apart.
None recorded in the model
Rust window.Window.panes
List this window's panes, preserving any failure.
async
Go tmux.Window.Panes
Panes returns newly allocated shallow copies of panes for this exact winlink, and reports whether the receiver carries relations at all.
None recorded in the model
Java io.github.libtmux.Window.panes
This link's panes, in tmux's order. A pure read of the capture.
None recorded in the model
Clojure libtmux.data/panes
Returns captured pane occurrences in a snapshot, session, or window.
Traverses one capture locally. It does not issue a list-panes command.
Kotlin io.github.libtmux.kotlin.Window.panes
This link's panes, in tmux's order. A pure read of the capture.
None recorded in the model
Scala io.github.libtmux.scaladsl.Window.panes
This link's panes.
None recorded in the model
C# LibTmux.Window.Panes
Gets the panes the capture found in this window.
None recorded in the model
F# LibTmux.FSharp.Window.panes
Queries the panes in a window.
Builds a deferred pane query from one LibTmux.Window and its server. Query.list acquires panes scoped to that window ID.
C++ libtmux::Window::panes readonly
Swift Snapshot.panes(of:)
The panes of a window, in tmux's order.
None recorded in the model
OCaml Libtmux.Window.panes
Reads captured panes in one global window without I/O.
Perl LibTmux::Window::panes
LibTmux::Selection of LibTmux::Pane entities. Local captured data; no I/O.
Reads this physical window’s captured panes without I/O.
Raku LibTmux::Model::Window.panes
Captured physical panes; relation traversal never acquires newer data.
None recorded in the model
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No equivalent is recorded in Lua or Elixir.

Source-verified mappings for List a session's panes. 10 other ports mapped. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

List a session's panes in each port
PortAPIDiffers from PowerShell
PowerShell LibTmux\Get-TmuxPane
Read panes from a server, session or window.
This page
Python libtmux.Session.panes
Panes contained by session's windows.
None recorded in the model
Ruby LibTmux::Session#list_panes
Behavior: Live acquisition.
None recorded in the model
Common Lisp libtmux:panes
Return a fresh vector of captured physical panes, without I/O. Snapshots preserve first occurrence; windows preserve the captured pane order.
panes traverses captured observations; applying it to a session returns panes reachable through its retained links.
TypeScript session.Session.panes
Panes contained by this session's windows.
None recorded in the model
Rust session.Session.panes
List every pane in this session, preserving any failure.
async
Go tmux.Session.Panes
Panes returns newly allocated shallow copies of this snapshot record's pane views, and reports whether the receiver carries relations at all.
None recorded in the model
C# LibTmux.Session.Panes
Gets the panes the capture found in this session.
None recorded in the model
F# LibTmux.FSharp.Session.panes
Queries the panes of every window in a session.
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 readonly
Swift Snapshot.panes(of:)
The panes of a window, in tmux's order.
None recorded in the model
No Julia equivalent.

Traverse windows(session) and panes(window) in the captured snapshot. panes(snapshot) has server-wide scope.

No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No Java equivalent.

no direct accessor; traverse Session.windows and Window.panes

No OCaml equivalent.

Traverse Session.windows and Window.panes in the captured graph. Snapshot.panes has server-wide scope.

No Perl equivalent.

Traverse the session’s window links and physical windows; choose explicitly whether repeated linked panes should repeat.

No Raku equivalent.

No direct Raku mapping is recorded for this operation; consult the native API reference.

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

Source-verified mappings for List the server's panes. 21 other ports mapped. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

List the server's panes in each port
PortAPIDiffers from PowerShell
PowerShell LibTmux\Get-TmuxPane
Read panes from a server, session or window.
This page
Python libtmux.Server.panes
Panes contained in tmux server (across all windows in all sessions).
None recorded in the model
Ruby LibTmux::Server#list_panes
Behavior: Live acquisition.
None recorded in the model
Lua libtmux.Snapshot.panes None recorded in the model
Julia LibTmux.panes
panes with a Snapshot reads every captured physical pane. Use paneoccurrences for session placements.
Erlang tmux_snapshot:panes/1
Return unique captured physical panes in numeric ID order without I/O. related/3 orders panes within a window by pane index.
Returns unique captured physical panes without tmux I/O.
Elixir LibTmux.Snapshot.panes/1
Returns a materialized physical pane selection without I/O.
Returns a Selection of every captured physical pane without contacting tmux.
Common Lisp libtmux:panes
Return a fresh vector of captured physical panes, without I/O. Snapshots preserve first occurrence; windows preserve the captured pane order.
panes on a snapshot returns captured physical panes once each.
TypeScript server.Server.panes
Every pane on the server.
async
Rust server.Server.panes
List every pane on the server, preserving any failure.
async
Go tmux.Server.Panes
Panes materializes pane records for every winlink. Failures, including ErrNoServer, remain errors rather than empty results.
None recorded in the model
Java io.github.libtmux.Server.panes
Captures every pane on the server.
None recorded in the model
Clojure libtmux.core/panes!
Acquires captured pane occurrences.
Acquires a new graph and returns its pane occurrences.
Kotlin io.github.libtmux.kotlin.Server.panes
Captures every pane on the server.
async
Scala io.github.libtmux.scaladsl.Server.panes
Captures every pane on the server.
None recorded in the model
C# LibTmux.Server.Panes
Gets the panes this handle captured, across every window.
None recorded in the model
F# LibTmux.FSharp.Server.panes
Queries every pane.
Builds a deferred pane query on the shared .NET LibTmux.Server. Query.list acquires panes across that server.
C++ libtmux::Server::panes readonly
Swift Server.panes()
Every pane on this server, in tmux's own order. A pane whose window has several session links appears once.
async
OCaml Libtmux.Snapshot.panes None recorded in the model
Perl LibTmux::Snapshot::panes
Return a fresh LibTmux::PaneSelection containing each physical pane identity once. Membership edits cannot change the graph store.
One entry per captured physical pane; raw listings preserve contextual rows separately.
Raku LibTmux::Model::Snapshot.panes
Captured physical panes; relation traversal never acquires newer data.
None recorded in the model
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

Esc
Search in

Type to search.

Reference previewOpen reference