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

switch_client

Source and package
Qualified name
LibTmux.switch_client
Module
LibTmux
Package
LibTmux
Source
src/topology.jl

Methods

switch_client( connection::LibTmux.ControlConnection, client::LibTmux.ClientRef, session::LibTmux.SessionRef; update_environment, kwargs..., )[source]

Switch the captured client to the exact session on the connected daemon. Recheck its name and observed PID/creation-time incarnation before submission. Client names must be valid UTF-8 without spaces or control bytes because tmux reflects them as unescaped notification fields. update_environment=true copies the client's configured environment variables into the destination session.

switch_client(connection::ControlConnection, client::ClientRef, session::SessionRef;
update_environment=false, kwargs...)

Return ControlResult after the completion fence. The connection pins daemon identity; client incarnation remains observational and can change between the check and mutation. strict=false does not weaken the daemon guard. There is no implicit current client, replay or subprocess fallback.

switch_client( server::LibTmux.Server, client::LibTmux.ClientRef, session::LibTmux.SessionRef; update_environment, kwargs..., )[source]

Switch exactly the captured client to a session. Recheck its name and observed PID/creation-time incarnation before submission. update_environment=true also updates the destination session's environment from the client. Incarnation and generation checks are best effort; strict execution is unsupported.

switch_client(server, client::ClientRef, session::SessionRef;
update_environment=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.switch_client.

tmux command

task material

The tmux commands behind switch_client.

tmux C API

task material

The C declarations in tmux that implement these commands.

Esc
Search in

Type to search.

Reference previewOpen reference