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

LibTmux\New-TmuxServer LibTmux\New-TmuxServer

Construct a tmux endpoint handle without contacting it.

Source and package
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/NewTmuxServerCommand.cs
Other languages
Julia (struct)PythonRubyLuaTypeScriptRustGoJavaC#C++SwiftKotlinScalaF# (module)

Description#

Choose a socket name or absolute socket path. Construction performs no tmux I/O and does not start or own a daemon. A later command explicitly acquires data or changes tmux. Omitting both socket selectors uses the core default endpoint.

Notes

The returned LibTmux.Server is unmaterialized. TmuxBinaryPath and ConfigurationFile affect subsequent operations; construction does not execute them.

Command details#

Command type
cmdlet
Default parameter set
Name
Positional binding
Enabled.
Outputs
LibTmux.Server

Examples#

Example 1 Construct a handle for the existing socket identified by $SocketPath . View source

Terminal window
LibTmux\New-TmuxServer -SocketPath $SocketPath
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 , Getting started , Troubleshooting · Ownership and cleanup

In other ports A tmux server
Esc

Type to search.

Reference preview Open reference