# io.github.libtmux.kotlin.CommandChain

- **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/CommandChain.kt#L11
- **Page:** https://libtmux.org/en/kotlin/latest/reference/io-github-libtmux-kotlin-commandchain/

```
public class CommandChain
```

A sequence of tmux commands where each one acts on what the last one made.

Holds the Java handle privately, so a member here always wins over a same-named catalog-generated
extension in `CommandChainOperations.kt`.

## Members

### Other members

- `arrange` (method): Arranges the current window.
- `asJava` (property): The Java chain this wraps: the same object, for a Java API that takes one.
- `equals` (method)
- `hashCode` (method)
- `newWindow` (method): Makes a window named [name], which the commands after it act on. Collected, not sent.
- `renameWindow` (method): Renames the window the chain is on. Collected, not sent.
- `run` (method): Runs the whole chain in one tmux invocation, attributing each step.
- `sendLine` (method): Types [command] into the current pane and presses Enter. Collected, not sent.
- `server` (property)
- `splitLeftRight` (method): Splits the current pane into left and right. Collected, not sent.
- `splitTopBottom` (method): Splits the current pane into top and bottom. Collected, not sent.
- `then` (method): Adds any tmux command. Collected, not sent.
- `toString` (method)
