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

open_server

Source and package
Qualified name
LibTmux.open_server
Module
LibTmux
Package
LibTmux
Source
src/lifecycle.jl

Methods

Start an isolated foreground tmux daemon with an empty configuration and a unique private socket directory. Validate its reported PID against the spawned child before returning an OwnedServer. Environment entries are copied and validated; inherited TMUX and TMUX_PANE are removed. No ambient server is contacted. The temporary directory must permit a socket path under 104 bytes.

open_server(; tmux="tmux", env=ENV, timeout=0.9, cancel=nothing)

timeout bounds startup using a monotonic clock; cancel applies only until startup finishes. Both failure paths reap the daemon. Daemon stderr retains at most 64 KiB; startup and cleanup errors indicate truncated diagnostics. Close the returned handle explicitly, or use with_server for scoped ownership.

Parameters

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.open_server.

tmux command

task material

The tmux commands behind open_server.

tmux C API

task material

The C declarations in tmux that implement these commands.

Guides

task material

Pages that discuss open_server.

Esc
Search in

Type to search.

Reference previewOpen reference