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

io.github.libtmux.control.ControlClient.ControlClient.attach

Java

View as Markdown

Module
io.github.libtmux.control.ControlClient
Declared in
ControlClient
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/control/ControlClient.java
Other languages
Python Ruby Lua TypeScript RustGo.NETC++ Swift
attach ( config : ServerConfig , session : SessionId ) → ControlClient ( config : ServerConfig , session : SessionId , timeout : Duration ) → ControlClient
methodstaticoverload2 overloads [source]
methodstaticoverload2 overloads [source]
attach

Attaches a control client to an existing session.

Attaching is what makes tmux push %output: a control client that never attaches is told about command replies and nothing else.

Parameters
  • config ( ServerConfig ) – which tmux and which server

  • session ( SessionId ) – the session to attach to

  • timeout ( Duration ) – how long to wait for the client to become ready

Discussed in Control mode vs one-shot

In other ports Attach a client to a session

0 declared, 0 inherited

Esc

Type to search.