# io.github.libtmux.TmuxFormats.storedNames

- **Module:** io.github.libtmux
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c067fced0dfd19bd6dd3d260e9d4c336becdb063/libtmux/src/main/java/io/github/libtmux/TmuxFormats.java#L85
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-tmuxformats-tmuxformats-storednames/

```
static java.util.List<String> storedNames(
        String name,
        TmuxVersion version)
```

The names to look for when a caller names a session: the one this release stores for it, then the name exactly as given, which is what {@link Session#name} already reports.

tmux doubles each backslash; 3.3a through 3.4 put a backslash before a {@code $} that a
letter, {@code _}, or `{` follows; 3.3a through 3.6 store {@code .} and {@code :}
as {@code _} and a control character as a C escape or three octal digits. 3.7 and later refuse
control characters. The stored form is an escaping, so it names at most one session; only a
name that is itself some other name's stored form is ambiguous, and the stored form wins.

## Parameters

- `name` (`String`)
- `version` (`TmuxVersion`)
