libtmux Reference MCP Search
On this page

LibTmux.Server.FromEnvironment

View as Markdown

Module
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.FromEnvironment.cs
FromEnvironment ( environment : IReadOnlyDictionary<string, string>? ) Server
methodstatic [source]
methodstatic [source]
FromEnvironment

Returns the server whose pane this process was spawned in.

Only the socket path is used. The pid and session id in TMUX are frozen at pane spawn, and the session id goes stale as soon as the pane's window moves between sessions. Costs no tmux subprocess.

Parameters
Returns

An unmaterialized handle for the exported socket.

Raises

Discussed in Environment

0 declared, 0 inherited

Esc

Type to search.