On this page
LibTmux.Session.FromEnvironmentAsync
- Module
- LibTmux
- Declared in
- Session
- Package
- LibTmux
- Source
- src/LibTmux/Session.FromEnvironment.cs
- FromEnvironmentAsync ( environment : IReadOnlyDictionary<string, string>? , cancellationToken : CancellationToken ) Task<Session>
-
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
-
-
environment ( IReadOnlyDictionary<string, string>? ) – The environment, or null for the process.
-
cancellationToken ( CancellationToken ) – Cancels the tmux commands.
-
- Returns
-
The resolved session.
Discussed in Environment
0 declared, 0 inherited