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.

cmdlet libtmux-powershell latest

LibTmux.Get-TmuxWindow

Read contextual windows from a server or session.

Source and package
Qualified name
LibTmux\Get-TmuxWindow
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxWindowCommand.cs
Other languages
Juliastruct Elixirstruct PythonRubyLuaTypeScriptRustGoJavaC#C++SwiftKotlinScalaF#module
Server (default): Get-TmuxWindow [-Server] <LibTmux.Server> [-Id <System.String>] [-Name <System.String>] [<CommonParameters>]Session: Get-TmuxWindow [-Session] <LibTmux.Session> [-Id <System.String>] [-Name <System.String>] [<CommonParameters>]

Description#

Accept a native Server or Session as the owner. Each result retains its session placement. A linked window can therefore appear more than once. Id and Name are ordinal literal selectors; they do not expand wildcards.

Notes

Global window identity differs from session-relative placement. Do not silently deduplicate results when placement index matters.

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.
Outputs
LibTmux.Window

Examples#

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

Terminal window
LibTmux\New-TmuxServer -SocketPath $SocketPath | LibTmux\Get-TmuxWindow
Parameters
Common parameters 12

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

Returns

LibTmux.Window: Native pipeline type for this command.

tmux command#

The tmux commands behind Get-TmuxWindow.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss Get-TmuxWindow.

In other ports#

A tmux window

Equivalents of A tmux window in other languages
Language Equivalent
Python libtmux.Window
Ruby LibTmux::Window
Lua libtmux.Window
Julia LibTmux.WindowSnapshot WindowSnapshot holds captured physical-window data. WindowLink records a placement in a session; actions use WindowRef.
Elixir LibTmux.Window Window is a physical window. WindowLink records its session index and active state.
TypeScript window.Window
Rust window.Window
Go tmux.Window
Java io.github.libtmux.Window
Kotlin io.github.libtmux.kotlin.Window
Scala io.github.libtmux.scaladsl.Window
C# LibTmux.Window
F# LibTmux.FSharp.Window This F# module identifies shared .NET LibTmux.Window placements and builds deferred pane queries. Query.list acquires their results from tmux.
C++ libtmux::Window
Swift Window

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
Julia LibTmux.windows windows with a captured SessionSnapshot reads distinct physical windows in that session. Use windowlinks for placements.
TypeScript session.Session.windows
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.

List the server's windows

Equivalents of List the server's windows in other languages
Language Equivalent
Python libtmux.Server.windows
Ruby LibTmux::Server#list_windows
Lua libtmux.Snapshot.windows
Julia LibTmux.windows windows with a Snapshot reads every captured physical window. Use windowlinks for session placements.
Elixir LibTmux.Snapshot.windows/1 Returns a Selection of every captured physical window. window_links/1 lists session placements.
TypeScript server.Server.windows
Rust server.Server.windows
Go tmux.Server.Windows
Java io.github.libtmux.Server.windows
Kotlin io.github.libtmux.kotlin.Server.windows
Scala io.github.libtmux.scaladsl.Server.windows
C# LibTmux.Server.Windows
F# LibTmux.FSharp.Server.windows Builds a deferred query for placements across all sessions. Query.list acquires the results; a linked window appears once for each session placement.
C++ libtmux::Server::windows
Swift Server.windows()
Esc

Type to search.

Reference previewOpen reference