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

Go API

Go documentation

tmux.Server.AttachSession

Go

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_attach.go
Other languages
Python Ruby Lua TypeScript RustJava.NETC++ Swift
AttachSession ( ctx : context.Context , request : AttachSessionRequest ) → error
method [source]
method [source]
AttachSession

AttachSession attaches the caller's terminal to a matching session and blocks until detach or context cancellation. Nil standard streams inherit the process streams; each stream must be a concrete terminal descriptor. The call retains caller-supplied files while attached and never owns or closes them. A completed nonzero exit returns CommandError ; cancellation can end waiting but does not prove that attachment or detachment did not occur.

Alone among this package's operations, it leaves tmux's own locale detection alone, because what tmux writes here reaches the caller's terminal rather than this package. See Session.Attach for the session-scoped form.

In other ports Attach a client to a session

0 declared, 0 inherited

Esc

Type to search.