# io.github.libtmux.kotlin.Shell

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

```
public class Shell
```

A shell command run by tmux, and a tmux command chosen by a shell command's exit status.

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

## Members

### Other members

- `asJava` (property): The Java shell this wraps: the same object, for a Java API that takes one.
- `capturing` (method): Runs a shell command and answers with what it printed.
- `choose` (method): Runs one tmux command when a shell command succeeds.
- `equals` (method)
- `hashCode` (method)
- `run` (method): Runs a shell command for its effect.
- `server` (property)
- `toString` (method)
