# libtmux.Pane:set_title

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/entity.lua#L495
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-pane-set_title/

```
set_title: fun(
  self: libtmux.Pane,
  text: string,
  options?: libtmux.PaneOptions,
):libtmux.Request<boolean>
```

## Parameters

- `text` (`string`)
- `options` (`libtmux.PaneOptions?`)

## tmux command

The tmux commands behind `set_title`.

- [`select-pane`](/en/tmux/latest/manual/select-pane/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_select_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_select_pane_entry/) (attribute)
- [`cmd_select_pane_exec`](/en/tmux/latest/reference/c-function-cmd-select-pane-c-cmd_select_pane_exec/) (function)

## Guides

Pages that discuss `set_title`.

- [Pane operations](/en/lua/v0.1.1/guides/panes/)

## In other ports

Set a pane's title

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.set_title`](/en/py/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.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) |

No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Kotlin, Scala or F#.
