Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

property libtmux-dotnet

Server.Environment

Gets the environment new sessions inherit from.

Source and package
Qualified name
LibTmux.Server.Environment
Namespace
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Scopes.cs

In other ports

task equivalence 9 other ports mapped

Source-verified mappings for Read the server's global environment. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Read the server's global environment in each port
PortAPIDiffers from C#
C# LibTmux.Server.Environment
Gets the environment new sessions inherit from.
This page
Python libtmux.Server.show_environment
Show environment $ tmux show-environment -t [session].
None recorded in the model
Ruby LibTmux::Server#environment
Behavior: Environment.
None recorded in the model
Lua libtmux.Server:list_environment None recorded in the model
TypeScript server.Server.showEnvironment
Every variable in the server's global environment.
None recorded in the model
Rust server.Server.environment
Read one variable from the server's environment.
async
Go tmux.Server.ShowEnvironment
ShowEnvironment returns an owned server-global non-hidden tmux environment. Completed command failures return an empty map unless strict errors are enabled. Externally injected multiline entries return ErrMalformedEnvironment because tmux's multi-entry output does not frame continuation lines. Decode errors are compatible with ErrMalformedEnvironment and return no partial map.
None recorded in the model
Swift Server.environment(_:)
Every variable in an environment, in the order tmux printed them.
async
OCaml Libtmux_unix.Client.capture_environment
Acquire a bounded table through a read-only command process. Its response must identify the bound daemon while the original pidfd remains live. Unsupported external variable names fail decoding; they are not omitted.
Pass Environment.Global for server values or Environment.Session with a bound session target. Acquisition is explicit.
Raku LibTmux::Configuration::Environment.list
Capture normal entries, or only hidden entries when requested explicitly.
Use the corresponding server or session environment facade.
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No Java equivalent.

no equivalent on Server

No C++ equivalent.

no equivalent on Server

No Perl equivalent.

No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference