# LibTmux::Server::set_title

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Server.pm#L1046
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-server-set_title/

```
sub set_title($self, %args)
```

`set_title(pane => Pane|pane_id, title => string)`.

Set a [`LibTmux::Pane`](/en/perl/latest/reference/libtmux-pane/) title. Literal input is protected from format expansion; tmux's own title sanitization remains observable in a new [`LibTmux::Snapshot`](/en/perl/latest/reference/libtmux-snapshot/).

Returns `undef` after command acceptance. Performs I/O; failures propagate through [`LibTmux::X`](/en/perl/latest/reference/libtmux-x/). Captured objects are not modified.


```perl
    $server->set_title(pane => $pane, title => 'build.v2');
```

## Methods

## Parameters

- `args`

## tmux command

The tmux commands behind `set_title`.

- [`display-message`](/en/tmux/latest/manual/display-message/) (daemon identity or target preflight)
- [`select-pane`](/en/tmux/latest/manual/select-pane/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_display_message_entry`](/en/tmux/latest/reference/c-variable-cmd_display_message_entry/) (attribute)
- [`cmd_display_message_exec`](/en/tmux/latest/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function)
- [`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)

## In other ports

Set a pane's title

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.set_title`](/en/py/latest/reference/libtmux-pane-set_title/) (method) |
| Lua | [`libtmux.Pane:set_title`](/en/lua/latest/reference/libtmux-pane-set_title/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| 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) |
| OCaml | [`Libtmux_unix.Client.set_pane_title`](/en/ocaml/latest/reference/libtmux_unix-client-set_pane_title/) (function) |

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