# io.github.libtmux.Server.Server.chain

- **Module:** io.github.libtmux.Server.Server
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Server.java#L322
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-server-server-chain/

```
io.github.libtmux.Server.Server.chain() -> CommandChain
```

Starts a chain of commands where each one acts on what the last one made.

tmux moves its own current target as a group runs, so a chain needs no round trip to learn
the id of a window or pane it just created.
