server.Server.getEnvironment
TypeScript
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- server
- Declared in
- Server
- Package
- libtmux
- Source
- packages/libtmux/src/server.ts
- Other languages
- Python Ruby Lua RustGo Java .NET C++ Swift
-
One variable from the server's global environment, or
undefinedwhen tmux carries no entry.Examples
await server.getEnvironment("EDITOR"); // "vim", null, or undefinedIn other ports Read one variable from the server's environment
- Python no single-variable read; the whole table is returned
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- Rust
server.Server.environment - Go
tmux.Server.GetEnvironment - Java no single-variable read; the whole table is returned
- .NET no single-variable read; the whole table is returned
- C++ no single-variable read; the whole table is returned
- Swift no single-variable read; the whole table is returned
0 declared, 0 inherited