Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

class libtmux latest

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 3.7c manual, Clients and sessions. "Clients are attached to sessions to interact with them..." attach-session attaches a terminal. switch-client selects its session or key table. show-messages shows server messages or information. Upstream source; OpenBSD tmux(1) manual.

Members7#

Parent objects1#

Common operations1#

Other members5#

Inherited members179 members#

Reached through libtmux.neo.Obj.

Guides#

Pages that discuss Client.

Topics
Esc

Type to search.

Reference previewOpen reference