# io.github.libtmux.kotlin.Client

- **Module:** io.github.libtmux.kotlin
- **Package:** io.github.libtmux:libtmux-kotlin
- **Language:** Kotlin
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Client.kt#L12
- **Page:** https://libtmux.org/en/kotlin/latest/reference/io-github-libtmux-kotlin-client/

```
public class Client
```

An attached tmux client and its captured properties.

Holds the Java handle privately, so a member here always wins over a same-named catalog-generated
extension in `ClientOperations.kt`. [Companion] hosts the generated query field namespace.

## Members

### Parent objects

- `session` (property): The session this client was attached to when captured. A pure read of the capture.
- `server` (property)

### Other members

- `asJava` (property): The Java client this wraps: the same object, for a Java API that takes one.
- `attachment` (property): What this client was looking at when captured. A pure read: it issues no command.
- `Companion` (module)
- `detach` (method): Detaches this client, leaving whatever it was attached to running.
- `detachOthers` (method): Detaches every other client, leaving this one attached.
- `equals` (method)
- `fetchAttachment` (method): Takes a new capture and returns what this client is looking at now.
- `hashCode` (method)
- `name` (property): The client's terminal name, which is how tmux addresses it.
- `redraw` (method): Asks tmux to redraw this client.
- `refresh` (method): Takes a new capture and returns this client as it is now.
- `switchTo` (method): Moves this client to another session.
- `toString` (method)
