Server.FromEnvironment
Returns the server whose pane this process was spawned in.
Source and package
-
Description#
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 ( IRead
Only <string, string>? ) – The environment, or null for the process.Dictionary
-
- Returns
-
An unmaterialized handle for the exported socket.
- Raises
-
-
Tmux
Object – The environment does not name a tmux server.Not Found Exception
-
Discussed in 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 - 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.