Core LibraryAPI Reference

Choose documentation 2

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

cmdlet libtmux-powershell latest

LibTmux.Get-TmuxWindow

LibTmux\Get-TmuxWindow LibTmux\Get-TmuxWindow

Read contextual windows from a server or session.

Source and package
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxWindowCommand.cs
Other languages
Julia (struct)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 list-windows

Discussed in Captured state and I/O · Arrange panes and resize windows , Read tmux objects

In other ports A tmux window
In other ports List a session's windows
In other ports List the server's windows
Esc

Type to search.

Reference preview Open reference