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

libtmux::Server::from_env

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

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux-cxx
Source
include/libtmux/server.hpp
Other languages
Python Ruby Lua TypeScript Rust Go Java .NET Swift
from_env ( observer : CommandObserver = {} , policy : ExecutionPolicy = {} ) → expected< Server, CommandFailure >
methodstatic [source]
methodstatic [source]
from_env

The server this process is running inside.

tmux exports TMUX to everything it starts, as `<socket path>,<server pid>,<session id> Only the socket path is read: the session id is stale the moment a pane moves, and a#()` job carries no session at all — so a caller who wants the session asks tmux, rather than trusting what it inherited.

Discussed in Environment

In other ports The server this process is running inside

0 declared, 0 inherited

Esc

Type to search.