# session.Session.panes

- **Module:** session
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/session.ts#L161
- **Page:** https://libtmux.org/en/ts/latest/reference/session-session-panes/

```
panes(): Selection<Pane>
```

Panes contained by this session's windows.

## Examples

```ts
session.panes.where({ currentCommand: "vim" }).count();
```

## Guides

Pages that discuss `panes`.

- [Traversal](/en/ts/latest/topics/traversal/)

## In other ports

List a session's panes

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Session.panes`](/en/py/latest/reference/libtmux-session-panes/) (property) |
| Ruby | [`LibTmux::Session#list_panes`](/en/ruby/latest/reference/libtmux-session-list_panes/) (method) |
| PowerShell | [`LibTmux\Get-TmuxPane`](/en/powershell/latest/reference/libtmux-get-tmuxpane/) (cmdlet). Use the [`-Session`](/en/powershell/latest/reference/libtmux-get-tmuxpane/#LibTmux%5CGet-TmuxPane.parameter.Session) parameter set to acquire panes across that session’s windows. |
| Julia | Traverse `windows(session)` and `panes(window)` in the captured snapshot. `panes(snapshot)` has server-wide scope. |
| Rust | [`session.Session.panes`](/en/rs/latest/reference/session-session-panes/) (method) |
| Go | [`tmux.Session.Panes`](/en/go/latest/reference/tmux-session-panes/) (method) |
| Java | no direct accessor; traverse Session.windows and Window.panes |
| C# | [`LibTmux.Session.Panes`](/en/csharp/latest/reference/libtmux-session-panes/) (property) |
| F# | [`LibTmux.FSharp.Session.panes`](/en/fsharp/latest/reference/libtmux-fsharp-session-panes/) (function). Builds a deferred pane query from one `LibTmux.Session` and its server. `Query.list` acquires panes across that session’s windows. |
| C++ | [`libtmux::Session::panes`](/en/cxx/latest/reference/libtmux-session-panes/) (method) |
| Swift | [`Snapshot.panes(of:)`](/en/swift/latest/reference/snapshot-panes(of-)/) (method) |

No equivalent is recorded in Lua, Elixir, Kotlin or Scala.
