Core LibraryunreleasedAPI reference

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

function LibTmux.jl

get_environment

Source and package
Qualified name
LibTmux.get_environment
Module
LibTmux
Package
LibTmux
Source
src/configuration.jl

Methods

get_environment( connection::LibTmux.ControlConnection, scope, name::AbstractString; inherit, kwargs..., )[source]

Refuse an environment read that cannot preserve EnvironmentValue metadata under the admitted control grammar. tmux 3.3a through the researched 3.7 dialect print literal environment newlines; format lookup cannot distinguish absent, hidden and removal entries or their local/global origin. Use an explicit Server read when that best-effort transport is acceptable. This method never falls back or returns an empty value as invented metadata.

get_environment(connection::ControlConnection, scope, name; inherit=false, kwargs...)

get_environment( server::LibTmux.Server, scope, name::AbstractString; inherit, kwargs..., )[source]

Read a global (:global) or session (SessionRef) environment entry. Return nothing when absent, or EnvironmentValue(value, hidden, inherited). value=nothing is a removal marker for new processes; value="" is empty. Hidden entries are returned with hidden=true. inherit=true falls back to global only for an absent session entry, never for a removal marker. This explicit multi-command observation is not an atomic child-process environment. Values retain literal control bytes, quotes and backslashes; tmux's shell-style reply is decoded as data, never executed. Variable names use [A-Za-z_][A-Za-z0-9_]*.

get_environment(server, scope, name; inherit=false, kwargs...)

Recorded calls

source calls
No call edges in the Julia model.

The Julia reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.get_environment.

tmux command

task material

The tmux commands behind get_environment.

show-environment (on a Server)

tmux C API

task material

The C declarations in tmux that implement these commands.

Guides

task material

Pages that discuss get_environment.

Esc
Search in

Type to search.

Reference previewOpen reference