# io.github.libtmux.Server.Server.expand

- **Module:** io.github.libtmux.Server.Server
- **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/Server.java#L194
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-server-server-expand/

```
io.github.libtmux.Server.Server.expand(format: String) -> String
```

Expands a tmux format against the server, and answers with what it came to.

<p>The server-wide counterpart to {@link Pane#expand}: fields such as {@code #{pid}} and
{@code #{version}} that belong to no session in particular.

## Parameters

- `format` (String) — a tmux format, usually of the shape {@code #{name}}

## Returns

the expansion, whole when it spans lines and empty when the format expanded to nothing
