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

LibTmux.Server.FromEnvironment

.NET
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET
  • C++
  • Swift Unavailable

View as Markdown

Module
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.FromEnvironment.cs
Other languages
Python Ruby Lua TypeScript Rust Go Java C++ Swift
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 Attaching to tmux · Environment

In other ports The server this process is running inside

0 declared, 0 inherited

Esc

Type to search.