LibTmux.Get-TmuxPane
Read panes from a server, session or window.
Source and package
- Qualified name
-
LibTmux\ Get-Tmux Pane - Declared in
LibTmux- Package
- LibTmux
- Source
- src/LibTmux.PowerShell/GetTmuxPaneCommand.cs
- Server (default): Get-TmuxPane [-Server] <Lib
Tmux > [-Id <System.Server .String >] [<CommonParameters >]Session: Get-TmuxPane [-Session] <LibTmux > [-Id <System.Session .String >] [<CommonParameters >]Window: Get-TmuxPane [-Window] <LibTmux > [-Id <System.Window .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-Objectover the returned captured properties for local selection.What is on here. A pane is the native
LibTmux.PanethatGet-TmuxPanereturns. 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-TmuxPanelists the panes of a server, a session or a window, or the one that matches an exact id.Update-TmuxPanereads a pane again into a new capture.Get-TmuxSnapshotcaptures panes with the windows and sessions that hold them, andGet-TmuxClientAttachmentresolves the pane a client is viewing.- Filtering and querying panes
Select-TmuxPanefilters panes you already captured without contacting tmux, and can require exactly one match.New-TmuxQuerybuilds criteria for thePanetarget andGet-TmuxQueryFieldlists the fields they accept.Invoke-TmuxQueryacquires fresh panes instead.- Splitting, resizing and removing a pane
Split-TmuxPanesplits a pane and returns the new one.Set-TmuxPaneSizeresizes a pane in cells or percent, by an edge, or toggles its zoom.Remove-TmuxPanedeletes a pane; removing the last pane of a window destroys the window.- Sending input and running commands
Send-TmuxTexttypes literal text, and addsEnteronly when you ask.Send-TmuxKeysends tmux key tokens such as C-a orEnter.Invoke-TmuxPaneCommandruns 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-TmuxPaneContentcaptures the rendered text, and its history when you ask.Wait-TmuxPaneTextwaits for text to appear. A timeout or a pane that exits comes back as an outcome of the wait, not as an error.- Options and hooks
Get-TmuxOption,Set-TmuxOptionandRemove-TmuxOptionread, write and unset the options of one pane.Get-TmuxHook,Set-TmuxHookandRemove-TmuxHookdo the same for its hooks, andInvoke-TmuxHookruns one now.
Notes
CurrentCommandandCurrentPathread 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
-
-
-Server(LibTmux ) for.Server ServerThe server whose panes are read.
- Required
- Yes
- Position
- 0
- Pipeline input
- By value
- Validation
ValidateNotNull()
-
An ordinal, literal pane identifier selector.
- Required
- No
- Position
- Named
- Pipeline input
- No
- Completion
ArgumentCompleter("LibTmux.PowerShell.PaneSelectorCompleter")- Validation
ValidateNotNullOrEmpty()
-
-Session(LibTmux ) for.Session SessionThe session whose panes are read.
- Required
- Yes
- Position
- 0
- Pipeline input
- By value
- Validation
ValidateNotNull()
-
-Window(LibTmux ) for.Window WindowThe window whose panes are read.
- Required
- Yes
- Position
- 0
- Pipeline input
- By value
- Validation
ValidateNotNull()
Common parameters 12
PowerShell supplies these parameters. See common parameter behavior for their effects.
-
-Verbose(System.Management ).Automation .Switch Parameter Display verbose messages produced by this command.
Aliases:vbMicrosoft Learn reference -
-Debug(System.Management ).Automation .Switch Parameter Display debug messages produced by this command.
Aliases:dbMicrosoft Learn reference -
-ErrorAction(System.Management ).Automation .Action Preference Choose how this command responds to non-terminating errors.
Aliases:eaMicrosoft Learn reference -
-WarningAction(System.Management ).Automation .Action Preference Choose how this command responds to warning messages.
Aliases:waMicrosoft Learn reference -
-InformationAction(System.Management ).Automation .Action Preference Choose how this command handles information messages.
Aliases:infaMicrosoft Learn reference -
-ProgressAction(System.Management ).Automation .Action Preference Choose how this command handles progress updates.
Aliases:progaMicrosoft Learn reference -
-ErrorVariable(System.String )Store the command's error records in the named variable.
Aliases:evMicrosoft Learn reference -
-WarningVariable(System.String )Store the command's warning records in the named variable.
Aliases:wvMicrosoft Learn reference -
-InformationVariable(System.String )Store the command's information records in the named variable.
Aliases:ivMicrosoft Learn reference -
Save output in the named variable while passing it down the pipeline.
Aliases:ovMicrosoft Learn reference -
Buffer output before passing it to the next pipeline command.
Aliases:obMicrosoft Learn reference -
-PipelineVariable(System.String )Make the most recent output object available through a named variable within the pipeline.
Aliases:pvMicrosoft Learn reference
-
- Returns
-
LibTmux.Pane: Native pipeline type for this command.
Examples
Example 1
Listpanes on the existing server identified by$SocketPath. View sourceTerminal window LibTmux\New-TmuxServer -SocketPath $SocketPath | LibTmux\Get-TmuxPane
Same owner
containment 1 of 58 shownOther members of LibTmux whose names share Get-TmuxPane. They sit on the same type; that does not make them behave alike.
Recorded calls
source callsThe 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 materialThe tmux commands behind Get-TmuxPane.
list-panes -a server scope, cmd_list_panes_server list-panes -s session scope, cmd_list_panes_session list-panes -t window scope, cmd_list_panes_window tmux C API
task materialThe C declarations in tmux that implement these commands.
Guides
task materialPages that discuss Get-TmuxPane.
- Concepts
In other ports
task equivalenceSource-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.
| Port | API | Differs from PowerShell |
|---|---|---|
| PowerShell | Lib Read panes from a server, session or window. | This page |
| Python | libtmux tmux(1) Pane [pane_manual]. | None recorded in the model |
| Ruby | Lib | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| Julia | Lib | PaneSnapshot holds captured pane data. Actions use its PaneRef; PaneOccurrence adds a window placement in a session. |
| Erlang | #tmux | None recorded in the model |
| Elixir | Lib 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 | Lib 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: A physical pane belonging to one captured window. | pane is an immutable captured physical pane. |
| TypeScript | pane One pane on one tmux server, as a handle rather than a copy of it. | None recorded in the model |
| Rust | pane One tmux pane, as reached through one window link. | None recorded in the model |
| Go | tmux 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 One tmux pane, as one capture saw it. | readonly |
| Clojure | libtmux 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 A tmux pane, with operations for input, output, and layout. | None recorded in the model |
| Scala | io 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# | Lib Represents an immutable pane handle and snapshot. | None recorded in the model |
| F# | Lib 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:: 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 | None recorded in the model |
| Perl | Lib Captured pane entity | A physical pane retains its captured graph, without retaining transport. |
| Raku | Lib 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.
| Port | API | Differs from PowerShell |
|---|---|---|
| PowerShell | Lib Read panes from a server, session or window. | This page |
| Python | libtmux Panes contained by window. | None recorded in the model |
| Ruby | Lib Behavior: Live acquisition. | None recorded in the model |
| Julia | Lib | panes with a captured WindowSnapshot reads panes in that window; missing coverage is an error. |
| Erlang | tmux 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: 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 Panes of this window placement; a linked window keeps each set apart. | None recorded in the model |
| Rust | window List this window's panes, preserving any failure. | async |
| Go | tmux 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 This link's panes, in tmux's order. A pure read of the capture. | None recorded in the model |
| Clojure | libtmux Returns captured pane occurrences in a snapshot, session, or window. | Traverses one capture locally. It does not issue a list-panes command. |
| Kotlin | io This link's panes, in tmux's order. A pure read of the capture. | None recorded in the model |
| Scala | io This link's panes. | None recorded in the model |
| C# | Lib Gets the panes the capture found in this window. | None recorded in the model |
| F# | Lib 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:: | readonly |
| Swift | Snapshot The panes of a window, in tmux's order. | None recorded in the model |
| OCaml | Libtmux | Reads captured panes in one global window without I/O. |
| Perl | Lib LibTmux::Selection of LibTmux::Pane entities. Local captured data; no I/O. | Reads this physical window’s captured panes without I/O. |
| Raku | Lib Captured physical panes; relation traversal never acquires newer data. | None recorded in the model |
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.
| Port | API | Differs from PowerShell |
|---|---|---|
| PowerShell | Lib Read panes from a server, session or window. | This page |
| Python | libtmux Panes contained by session's windows. | None recorded in the model |
| Ruby | Lib Behavior: Live acquisition. | None recorded in the model |
| Common Lisp | libtmux: 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 Panes contained by this session's windows. | None recorded in the model |
| Rust | session List every pane in this session, preserving any failure. | async |
| Go | tmux 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# | Lib Gets the panes the capture found in this session. | None recorded in the model |
| F# | Lib 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:: | readonly |
| Swift | Snapshot The panes of a window, in tmux's order. | None recorded in the model |
Traverse windows(session) and panes(window) in the captured snapshot. panes(snapshot) has server-wide scope.
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no direct accessor; traverse Session.windows and Window.panes
Traverse Session.windows and Window.panes in the captured graph. Snapshot.panes has server-wide scope.
Traverse the session’s window links and physical windows; choose explicitly whether repeated linked panes should repeat.
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.
| Port | API | Differs from PowerShell |
|---|---|---|
| PowerShell | Lib Read panes from a server, session or window. | This page |
| Python | libtmux Panes contained in tmux server (across all windows in all sessions). | None recorded in the model |
| Ruby | Lib Behavior: Live acquisition. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| Julia | Lib | panes with a Snapshot reads every captured physical pane. Use paneoccurrences for session placements. |
| Erlang | tmux 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 | Lib Returns a materialized physical pane selection without I/O. | Returns a Selection of every captured physical pane without contacting tmux. |
| Common Lisp | libtmux: 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 Every pane on the server. | async |
| Rust | server List every pane on the server, preserving any failure. | async |
| Go | tmux Panes materializes pane records for every winlink. Failures, including ErrNoServer, remain errors rather than empty results. | None recorded in the model |
| Java | io Captures every pane on the server. | None recorded in the model |
| Clojure | libtmux Acquires captured pane occurrences. | Acquires a new graph and returns its pane occurrences. |
| Kotlin | io Captures every pane on the server. | async |
| Scala | io Captures every pane on the server. | None recorded in the model |
| C# | Lib Gets the panes this handle captured, across every window. | None recorded in the model |
| F# | Lib Queries every pane. | Builds a deferred pane query on the shared .NET LibTmux.Server. Query.list acquires panes across that server. |
| C++ | libtmux:: | readonly |
| Swift | Server Every pane on this server, in tmux's own order. A pane whose window has several session links appears once. | async |
| OCaml | Libtmux | None recorded in the model |
| Perl | Lib 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 | Lib Captured physical panes; relation traversal never acquires newer data. | None recorded in the model |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.