# io.github.libtmux.Pane.Pane.mode

- **Module:** io.github.libtmux.Pane.Pane
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/Pane.java#L128
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-pane-pane-mode/

```
io.github.libtmux.Pane.Pane.mode() -> Optional<PaneMode>
```

Which mode this pane is in at this moment, or empty when it is in none.

<p>Read live rather than from the capture, because entering a mode is something this library
does and a caller wants to see the result of.

## Returns

the mode, or empty when the pane is showing its program

## Raises

- `LibTmuxException` — if this tmux named a mode outside the supported range
