Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

C# API

method libtmux-dotnet latest

Server.FromEnvironment

Namespace LibTmux.Server.FromEnvironment LibTmux

Returns the server whose pane this process was spawned in.

View as Markdown

Source and package
Module
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.FromEnvironment.cs
Other languages
Python Ruby Lua TypeScript Rust Go Java C++ Swift Kotlin Scala F#
FromEnvironment ( environment : IReadOnlyDictionary<string, string>? ) → Server
methodstatic [source]

Description#

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

In other ports The server this process is running inside
  • Python libtmux.Server.from_env
  • Ruby No source-verified Ruby equivalent is recorded for this operation.
  • Lua No source-verified Lua equivalent is recorded for this operation.
  • TypeScript no equivalent on Server
  • Rust server.Server.from_env
  • Go no equivalent on Server
  • Java no equivalent on Server
  • C++ libtmux::Server::from_env
  • Swift no equivalent on Server
  • Kotlin No source-verified Kotlin equivalent is recorded for this operation.
  • Scala No source-verified Scala equivalent is recorded for this operation.
  • F# No source-verified F# equivalent is recorded for this operation.
Esc

Type to search.