# io.github.libtmux.Pane.Pane.retitle

- **Module:** io.github.libtmux.Pane.Pane
- **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/Pane.java#L257
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-pane-pane-retitle/

```
io.github.libtmux.Pane.Pane.retitle(title: String) -> Pane
```

Retitles this pane and returns its replacement capture.

Retain the result to read the changed title. This handle keeps its original captured state.

A program running in the pane can set its own title through an escape sequence, and tmux
reports that one instead. This says what the title is now, not what it will stay.
