Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

Server.FromEnvironment

Returns the server whose pane this process was spawned in.

Source and package
Qualified name
LibTmux.Server.FromEnvironment
Namespace
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.FromEnvironment.cs

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.

Errors

Recorded calls

source calls
No call edges in the C# model.

The C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.FromEnvironment.

Guides

task material

Pages that discuss FromEnvironment.

In other ports

task equivalence 4 other ports mapped

Source-verified mappings for The server this process is running inside. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

The server this process is running inside in each port
PortAPIDiffers from C#
C# LibTmux.Server.FromEnvironment
Returns the server whose pane this process was spawned in.
This page
Python libtmux.Server.from_env
Return the tmux server this process's pane is attached to.
None recorded in the model
Rust server.Server.from_env
Build a server from the TMUX variable tmux exports into every pane.
None recorded in the model
C++ libtmux::Server::from_env
The server this process is running inside.
None recorded in the model
Raku LibTmux::Server.from-env
Import an explicit TMUX environment, verify its daemon PID and bind that incarnation.
Explicitly imports TMUX environment data, verifies the daemon PID and binds that incarnation.
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No TypeScript equivalent.

no equivalent on Server

No Go equivalent.

no equivalent on Server

No Java equivalent.

no equivalent on Server

No Swift equivalent.

no equivalent on Server

No OCaml equivalent.

Endpoint selection is explicit. Construct a named socket or socket path; the library does not infer an ambient server.

No Perl equivalent.

No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference