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

Session.FromEnvironmentAsync

Returns the session holding the pane this process runs in.

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

Description

Resolved through the pane rather than through the session id in TMUX. That id is frozen at pane spawn, so it names the wrong session once the pane's window is moved or linked elsewhere.

Parameters
Returns

The resolved session.

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.Session.FromEnvironmentAsync.

Guides

task material

Pages that discuss FromEnvironmentAsync.

In other ports

task equivalence 3 other ports mapped

Source-verified mappings for The session 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 session this process is running inside in each port
PortAPIDiffers from C#
C# LibTmux.Session.FromEnvironmentAsync
Returns the session holding the pane this process runs in.
This page
Python libtmux.Session.from_env
Return the session this process's pane belongs to.
None recorded in the model
TypeScript session.Session.fromEnv
Resolve the session this process is running inside.
None recorded in the model
Rust session.Session.from_env
Find the session this process is running in.
None recorded in the model
No Haskell equivalent.

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

No Go equivalent.

no equivalent on Session

No Java equivalent.

no equivalent on Session

No C++ equivalent.

no equivalent on Session

No Swift equivalent.

no equivalent on Session

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

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

No Raku equivalent.

Session targeting is explicit and incarnation-bound.

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