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

Python API

Python documentation

libtmux.Session.attach

Python

View as Markdown

Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/session.py
Other languages
Ruby Lua TypeScript RustGoJava.NETC++ Swift
attach ( self , exit_ : bool | None = None , flags_ : list[str] | None = None ) → Session
method [source]
method [source]
attach

Return $ tmux attach-session aka alias: $ tmux attach.

Examples

>>> session = server.new_session()
>>> session not in server.attached_sessions
True

Discussed in Attaching to tmux

In other ports Attach a client to a session

0 declared, 0 inherited

Esc

Type to search.