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.

method libtmux-dotnet latest

Session.FromEnvironmentAsync

Namespace LibTmux.Session.FromEnvironmentAsync LibTmux

Returns the session holding the pane this process runs in.

View as Markdown

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

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.

Discussed in Environment

In other ports The session this process is running inside
  • Python libtmux.Session.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 session.Session.fromEnv
  • Rust session.Session.from_env
  • Go no equivalent on Session
  • Java no equivalent on Session
  • C++ no equivalent on Session
  • Swift no equivalent on Session
  • 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.