# libtmux.Pane.set_title

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/pane.py#L1610
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-pane-set_title/

```
libtmux.Pane.set_title(self, title: str) -> Pane
```

Set pane title via [`select-pane -T`](/en/tmux/latest/manual/select-pane/).

## Examples

```python
>>> pane.set_title('my-title')
Pane(...)
```

```python
>>> pane.pane_title
'my-title'
```

## Parameters

- `title` (`str`): Title to set for the pane.

## Returns

:class:`Pane`
    The pane instance, for method chaining.

## In other ports

### Set a pane's title

- Lua: [`libtmux.Pane:set_title`](/en/lua/latest/reference/libtmux-pane-set_title/) (method)
- TypeScript: [`pane.Pane.setTitle`](/en/ts/latest/reference/pane-pane-settitle/) (method)
- Rust: [`pane.Pane.set_title`](/en/rs/latest/reference/pane-pane-set_title/) (method)
- Go: [`tmux.Pane.SetTitle`](/en/go/latest/reference/tmux-pane-settitle/) (method)
- Java: [`io.github.libtmux.Pane.Pane.retitle`](/en/java/latest/reference/io-github-libtmux-pane-pane-retitle/) (method)
- C#: [`LibTmux.Pane.SetTitleAsync`](/en/csharp/latest/reference/libtmux-pane-settitleasync/) (method)
- C++: [`libtmux::Pane::set_title`](/en/cxx/latest/reference/libtmux-pane-set_title/) (method)
- Swift: [`Server.setTitle(_:of:)`](/en/swift/latest/reference/server-settitle(_-of-)/) (method)
