Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

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

Python API

method libtmux stable

Session.attach

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

Source and package
Qualified name
libtmux.Session.attach
Module
libtmux
Declared in
Session
Package
libtmux
Source
src/libtmux/session.py
Other languages
PowerShell Julia Ruby Lua TypeScript RustGoJavaC#C++ Swift Kotlin Scala F#
attach ( self, exit_: bool | None = None, flags_: list[str] | None = None, ) → Session

Examples#

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

tmux command attach-session

In other ports Attach a client to a session
Esc

Type to search.

Reference preview Open reference