# io.github.libtmux.Server.Server.paneFields

- **Module:** io.github.libtmux.Server.Server
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Server.java#L572
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-server-server-panefields/

```
io.github.libtmux.Server.Server.paneFields(names: List<String>) -> Map<PaneId, Map<String, String>>
```

Chosen fields for every pane on the server, from one listing.

For what a capture does not carry — {@code pane_tty}, {@code pane_dead_status}, {@code
pane_start_command}, any of tmux's pane formats. Asking each pane is a tmux process per pane
and a view no single moment held; this is one {@code list-panes}, so every value is from the
same instant.

## Parameters

- `names` (List<String>): tmux format variable names, at most 32

## Returns

each pane's values keyed by the names asked for, in tmux's pane order

## Raises

- `IllegalArgumentException`: if a name is not a tmux variable name
- `ServerNotRunningException`: if no daemon is running
- `LibTmuxException`: if the listing otherwise fails

## Example

```java
Map<PaneId, Map<String, String>> ttys = server.paneFields(List.of("pane_tty", "pane_dead"));
```
