LibTmux.Server.FromEnvironment
- Module
- LibTmux
- Declared in
- Server
- Package
- LibTmux
- Source
- src/LibTmux/Server.FromEnvironment.cs
- Other languages
- Python Ruby Lua TypeScript Rust Go Java C++ Swift
- FromEnvironment ( environment : IReadOnlyDictionary<string, string>? ) Server
-
Returns the server whose pane this process was spawned in.
Only the socket path is used. The pid and session id in
TMUXare 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
-
-
environment ( IReadOnlyDictionary<string, string>? ) – The environment, or null for the process.
-
- Returns
-
An unmaterialized handle for the exported socket.
- Raises
-
-
TmuxObjectNotFoundException – The environment does not name a tmux server.
-
Discussed in Attaching to tmux · Environment
In other ports The server this process is running inside
- Python
libtmux.Server.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 no equivalent on
Server - Rust
server.Server.from_env - Go no equivalent on
Server - Java no equivalent on
Server - C++
libtmux::Server::from_env - Swift no equivalent on
Server
0 declared, 0 inherited