LibTmux.Get-TmuxPane
Read panes from a server, session or window.
Source and package
- 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.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
Examples#
Example 1
Listpanes on the existing server identified by$SocketPath. View sourceTerminal window LibTmux\New-TmuxServer -SocketPath $SocketPath | LibTmux\Get-TmuxPane- Parameters
-
-
-Server(LibTmux ) for.Server Server#The 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 Session#The session whose panes are read.
- Required
- Yes
- Position
- 0
- Pipeline input
- By value
- Validation
ValidateNotNull()
-
-Window(LibTmux ) for.Window Window#The 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 -
-OutVariable(System.String ) #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.
tmux command#
The 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#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss Get-TmuxPane.
- Concepts
In other ports#
A tmux pane
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Julia | Lib PaneSnapshot holds captured pane data. Actions use its PaneRef; PaneOccurrence adds a window placement in a session. |
| Elixir | Lib Pane is an immutable physical pane observation. It does not send keys or capture text. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | io |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| F# | Lib This F# module reads captured fields and starts explicit operations on the shared .NET LibTmux.Pane type. |
| C++ | libtmux:: |
| Swift | Pane |
List a window's panes
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Julia | Lib panes with a captured WindowSnapshot reads panes in that window; missing coverage is an error. |
| TypeScript | window |
| Rust | window |
| Go | tmux |
| Java | io |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| F# | Lib Builds a deferred pane query from one LibTmux.Window and its server. Query.list acquires panes scoped to that window ID. |
| C++ | libtmux:: |
| Swift | Snapshot |
No equivalent is recorded in Lua or Elixir.
List a session's panes
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Julia | Traverse windows(session) and panes(window) in the captured snapshot. panes(snapshot) has server-wide scope. |
| TypeScript | session |
| Rust | session |
| Go | tmux |
| Java | no direct accessor; traverse Session.windows and Window.panes |
| C# | Lib |
| F# | Lib Builds a deferred pane query from one LibTmux.Session and its server. Query.list acquires panes across that session’s windows. |
| C++ | libtmux:: |
| Swift | Snapshot |
No equivalent is recorded in Lua, Elixir, Kotlin or Scala.
List the server's panes
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Julia | Lib panes with a Snapshot reads every captured physical pane. Use paneoccurrences for session placements. |
| Elixir | Lib Returns a Selection of every captured physical pane without contacting tmux. |
| TypeScript | server |
| Rust | server |
| Go | tmux |
| Java | io |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| F# | Lib Builds a deferred pane query on the shared .NET LibTmux.Server. Query.list acquires panes across that server. |
| C++ | libtmux:: |
| Swift | Server |