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

LibTmux.Session.FromEnvironmentAsync

.NET

View as Markdown

Module
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.FromEnvironment.cs
Other languages
Python Ruby Lua TypeScriptRust Go Java C++ Swift
FromEnvironmentAsync ( environment : IReadOnlyDictionary<string, string>? , cancellationToken : CancellationToken ) → Task<Session>
methodstaticasync [source]
methodstaticasync [source]
FromEnvironmentAsync

Returns the session holding the pane this process runs in.

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.

Discussed in Environment

In other ports The session this process is running inside

0 declared, 0 inherited

Esc

Type to search.