ServerEndpoint.fromEnvironment
The server an environment names, or tmux's own default when it names none.
Source and package
- Qualified name
-
io.github .libtmux .Server Endpoint. from Environment - Package
- io.github.libtmux
- Declared in
ServerEndpoint- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/ServerEndpoint.java
- static Server
Endpoint fromEnvironment( Map<String, String> environment) -
Description#
LIBTMUX_SOCKET_PATHnames a socket path and selects it with-S;LIBTMUX_SOCKETnames a socket and selects it with-L. When both are set the path wins, as it does in the Python libtmux and in tmux itself, which ignores-Lbeside-S. A variable that is empty or blank counts as unset, each one on its own. With neither set the result is#defaultSocket().TMUXis never read. tmux follows it by itself when no socket is selected, andTmuxEnvironment#config()is the way to ask for that server by path.- Parameters
-
-
environment(Map<String, String>) # – the variables to read, typicallySystem.getenv()
-
- Raises
-
-
Illegal
Argument – ifException LIBTMUX_SOCKETholds a path separator; the message names the variable and leaves its value out
-