# io.github.libtmux.Client.Client

- **Module:** io.github.libtmux.Client
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/Client.java#L15
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-client-client/

One attached tmux client, as one capture saw it.

<p>Identity is the server and the client name, which is how tmux addresses it. What it is
attached to is state: a client can switch sessions without becoming a different client.

## Members

- `Client` (method)
- `name` (method) — The client's terminal name, which is how tmux addresses it.
- `detach` (method) — Detaches this client, leaving whatever it was attached to running.
- `detachOthers` (method) — Detaches every other client, leaving this one attached.
- `switchTo` (method) — Moves this client to another session.
- `redraw` (method) — Asks tmux to redraw this client.
- `server` (method) — The server this client is connected to.
- `snapshot` (method)
- `session` (method) — The session this client was attached to when captured. A pure read of the capture.
- `attachment` (method) — What this client was looking at when captured. A pure read: it issues no command.
- `fetchAttachment` (method) — Takes a new capture and returns what this client is looking at now.
- `refresh` (method) — Takes a new capture and returns this client as it is now, or empty if it has gone.
- `equals` (method)
- `hashCode` (method)
- `toString` (method)
