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.Connect-TmuxServer

LibTmux\Connect-TmuxServer LibTmux\Connect-TmuxServer

Discover the server at an explicit endpoint.

Source and package
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/ConnectTmuxServerCommand.cs

Description#

Accept a native LibTmux.Server handle and discover its live server generation. An unmaterialized handle produces a connected replacement. An already connected handle is returned unchanged. Use Get-TmuxSnapshot to acquire the hierarchy.

Notes

This command borrows the daemon. Errors preserve the core exception; -ErrorAction Stop terminates the pipeline.

Command details#

Command type
cmdlet
Positional binding
Enabled.
Pipeline inputs
LibTmux.Server : Native pipeline type for this command.
Outputs
LibTmux.Server

Examples#

Example 1 Connect to the existing server identified by $SocketPath . View source

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

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

Returns

LibTmux.Server : Native pipeline type for this command.

Discussed in Captured state and I/O , Object identity and placement · Attaching to tmux , Read tmux objects

Esc

Type to search.

Reference preview Open reference