# LibTmux.Snapshot.panes/1

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/snapshot.ex#L186
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-snapshot-panes-1/

```
panes(snapshot)
@spec panes(t()) :: LibTmux.Selection.t(LibTmux.Pane.t())
```

Returns a materialized physical pane selection without I/O.

See the [worked example](api-examples.html#local-graph-and-filtering).

## Parameters

- `snapshot` (`t()`)

## In other ports

List the server's panes

| Port | API | Differs from Elixir |
| --- | --- | --- |
| Elixir | `LibTmux.Snapshot.panes/1`. Returns a materialized physical pane selection without I/O. | This page |
| Python | [`libtmux.Server.panes`](/en/py/latest/reference/libtmux-server-panes/) (property). Panes contained in tmux server (across all windows in all sessions). | None recorded in the model |
| Ruby | [`LibTmux::Server#list_panes`](/en/ruby/latest/reference/libtmux-server-list_panes/) (method). Behavior: Live acquisition. | on Server |
| Lua | [`libtmux.Snapshot.panes`](/en/lua/latest/reference/libtmux-snapshot-panes/) (attribute) | None recorded in the model |
| PowerShell | [`LibTmux\Get-TmuxPane`](/en/powershell/latest/reference/libtmux-get-tmuxpane/) (cmdlet). Read panes from a server, session or window. | free function. 3 overloads. Use the [`-Server`](/en/powershell/latest/reference/libtmux-get-tmuxpane/#LibTmux%5CGet-TmuxPane.parameter.Server) parameter set to acquire panes across the server. |
| Julia | [`LibTmux.panes`](/en/julia/latest/reference/libtmux-panes/) (function) | free function. 2 overloads. `panes` with a `Snapshot` reads every captured physical pane. Use `paneoccurrences` for session placements. |
| Erlang | [`tmux_snapshot:panes/1`](/en/erlang/latest/reference/tmux_snapshot-panes-1/) (function). Return unique captured physical panes in numeric ID order without I/O. related/3 orders panes within a window by pane index. | free function. Returns unique captured physical panes without tmux I/O. |
| Common Lisp | [`libtmux:panes`](/en/lisp/latest/reference/libtmux-panes/) (function). Return a fresh vector of captured physical panes, without I/O. Snapshots preserve first occurrence; windows preserve the captured pane order. | free function. 3 overloads. `panes` on a snapshot returns captured physical panes once each. |
| TypeScript | [`server.Server.panes`](/en/ts/latest/reference/server-server-panes/) (method). Every pane on the server. | async. on Server |
| Rust | [`server.Server.panes`](/en/rs/latest/reference/server-server-panes/) (method). List every pane on the server, preserving any failure. | async. on Server |
| Go | [`tmux.Server.Panes`](/en/go/latest/reference/tmux-server-panes/) (method). Panes materializes pane records for every winlink. Failures, including ErrNoServer, remain errors rather than empty results. | on Server |
| Java | [`io.github.libtmux.Server.panes`](/en/java/latest/reference/io-github-libtmux-server-server-panes/) (method). Captures every pane on the server. | on Server. 2 overloads |
| Clojure | [`libtmux.core/panes!`](/en/clojure/latest/reference/libtmux-core-panes/) (function). Acquires captured pane occurrences. | free function. Acquires a new graph and returns its pane occurrences. |
| Kotlin | [`io.github.libtmux.kotlin.Server.panes`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-server-panes/) (method). Captures every pane on the server. | async. on Server. 2 overloads |
| Scala | [`io.github.libtmux.scaladsl.Server.panes`](/en/scala/latest/reference/io-github-libtmux-scaladsl-server-panes/) (method). Captures every pane on the server. | on Server. 2 overloads |
| C# | [`LibTmux.Server.Panes`](/en/csharp/latest/reference/libtmux-server-panes/) (property). Gets the panes this handle captured, across every window. | None recorded in the model |
| F# | [`LibTmux.FSharp.Server.panes`](/en/fsharp/latest/reference/libtmux-fsharp-server-panes/) (function). Queries every pane. | free function. Builds a deferred pane query on the shared .NET `LibTmux.Server`. `Query.list` acquires panes across that server. |
| C++ | [`libtmux::Server::panes`](/en/cxx/latest/reference/libtmux-server-panes/) (method) | on Server. readonly |
| Swift | [`Server.panes()`](/en/swift/latest/reference/server-panes()/) (method). Every pane on this server, in tmux's own order. A pane whose window has several session links appears once. | async. on Server |
| OCaml | [`Libtmux.Snapshot.panes`](/en/ocaml/latest/reference/libtmux-snapshot-panes/) (function) | free function |
| Perl | [`LibTmux::Snapshot::panes`](/en/perl/latest/reference/libtmux-snapshot-panes/) (method). Return a fresh LibTmux::PaneSelection containing each physical pane identity once. Membership edits cannot change the graph store. | One entry per captured physical pane; raw listings preserve contextual rows separately. |
| Raku | [`LibTmux::Model::Snapshot.panes`](/en/raku/latest/reference/libtmux-model-snapshot-panes/) (method). Captured physical panes; relation traversal never acquires newer data. | None recorded in the model |

No Haskell equivalent. No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
