# tmux.Client

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/model.go#L216
- **Page:** https://libtmux.org/reference/go/tmux-client/

Client is one materialized tmux client record. It is normally returned by [Server.Snapshot], [Server.Client], or [Client.Refresh]. A zero Client is not a usable tmux target.

## Members

- `ResolveAttachment` (method) — ResolveAttachment re-reads the client's live attached hierarchy.
- `Formats` (method) — Formats returns this Client's read-only materialized tmux format values. It does not query tmux; use [Server.Snapshot] to obtain a fresh record.
- `Activity` (method) — Activity returns tmux #{client_activity} as time.Time from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `CellHeight` (method) — CellHeight returns tmux #{client_cell_height} as int from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `CellWidth` (method) — CellWidth returns tmux #{client_cell_width} as int from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `ControlMode` (method) — ControlMode returns tmux #{client_control_mode} as bool from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `Created` (method) — Created returns tmux #{client_created} as time.Time from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `Discarded` (method) — Discarded returns tmux #{client_discarded} as int from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `Flags` (method) — Flags returns tmux #{client_flags} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `Height` (method) — Height returns tmux #{client_height} as int from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `KeyTable` (method) — KeyTable returns tmux #{client_key_table} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `LastSession` (method) — LastSession returns tmux #{client_last_session} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `ModeFormat` (method) — ModeFormat returns tmux #{client_mode_format} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `ProcessPID` (method) — ProcessPID returns tmux #{client_pid} as int from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `Prefix` (method) — Prefix returns tmux #{client_prefix} as bool from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `ReadOnly` (method) — ReadOnly returns tmux #{client_readonly} as bool from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `Session` (method) — Session returns tmux #{client_session} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `TermFeatures` (method) — TermFeatures returns tmux #{client_termfeatures} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `TermName` (method) — TermName returns tmux #{client_termname} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `TermType` (method) — TermType returns tmux #{client_termtype} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `TTY` (method) — TTY returns tmux #{client_tty} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `ProcessUID` (method) — ProcessUID returns tmux #{client_uid} as int from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `ProcessUser` (method) — ProcessUser returns tmux #{client_user} as string from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `UTF8` (method) — UTF8 returns tmux #{client_utf8} as bool from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `Width` (method) — Width returns tmux #{client_width} as int from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `Written` (method) — Written returns tmux #{client_written} as int from this Client's materialized client-scoped fields (tmux 3.2a or later).
- `Equal` (method) — Equal reports whether two clients carry the same stable client name and tmux server provenance.
- `String` (method) — String returns the client's stable name.
- `Refresh` (method) — Refresh performs a canonical live lookup without mutating the receiver.
- `Server` (method) — Server returns the configured handle that produced the client.
- `Name` (method) — Name returns the stable tmux name of this client.
- `AttachedSession` (method) — AttachedSession returns the materialized attached session, if present in the same snapshot. It never queries tmux.
- `AttachedWindow` (method) — AttachedWindow returns the client's exact materialized winlink, if present in the same snapshot. It never queries tmux.
- `AttachedPane` (method) — AttachedPane returns the client's exact materialized pane view, if present in the same snapshot. It never queries tmux.
