# io.github.libtmux.Session.Session.expand

- **Module:** io.github.libtmux.Session.Session
- **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/Session.java#L198
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-session-session-expand/

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

Expands a tmux format in this session's context, and answers with what it came to.

<p>The same escape hatch {@link Pane#expand} gives, resolved against this session.

## 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
