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

class libtmux stable

Client

tmux(1) Client [client_manual].

Base types Obj
Source and package
Qualified name
libtmux.Client
Module
libtmux
Package
libtmux
Source
src/libtmux/client.py
class libtmux.Client

Description#

A tmux client is an attached terminal. The same tmux server can have multiple clients attached simultaneously (e.g. $ tmux attach from several terminals) and each receives its own view of the active session, window, and pane.

Examples#

>>> with control_mode() as ctl:
... attached = [
... c
... for c in server.clients
... if c.client_name == ctl.client_name
... ]
>>> bool(attached)
True
>>> with control_mode() as ctl:
... client = server.clients.get(client_name=ctl.client_name)
... client.client_readonly in {"0", "1"}
True

References#

[client_manual]

tmux client. openbsd manpage for TMUX(1). "tmux supports multiple attached clients. Each client has its own keymap, view of the session, and message log." https://man.openbsd.org/tmux.1#DESCRIPTION. Accessed 2026.

Discussed in Server, session, window, pane · Architecture

Members7#

Parent objects1#

Common operations1#

Other members5#

Inherited members179 members#

Reached through libtmux.neo.Obj.

Esc

Type to search.

Reference preview Open reference