Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

tmux.NewServerFromEnv

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmux
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/from_env.go
NewServerFromEnv ( environment : map[string]string ) → (Server, error)
function [source]
function [source]
NewServerFromEnv

NewServerFromEnv returns a server configured from TMUX without starting tmux. It snapshots the process environment once. A nonnil environment supplies discovery values and overrides that snapshot for later tmux processes; an empty map therefore has no TMUX discovery value. Names follow the platform's environment rules and are case-insensitive on Windows.

Discussed in Environment

0 declared, 0 inherited

Esc

Type to search.