# #tmux_model:pane{}

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_model.erl#L84
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_model-pane/

```
-record #pane{id :: pane_id(),
              window_id =
                  not_loaded ::
                      window_id() |
                      not_loaded | unavailable,
              index =
                  not_loaded ::
                      non_neg_integer() |
                      not_loaded | unavailable,
              active =
                  not_loaded ::
                      boolean() | not_loaded | unavailable,
              current_command =
                  not_loaded ::
                      binary() | not_loaded | unavailable,
              current_path =
                  not_loaded ::
                      binary() | not_loaded | unavailable,
              width =
                  not_loaded ::
                      non_neg_integer() |
                      not_loaded | unavailable,
              height =
                  not_loaded ::
                      non_neg_integer() |
                      not_loaded | unavailable,
              pid =
                  not_loaded ::
                      pos_integer() |
                      none | not_loaded | unavailable,
              title =
                  not_loaded ::
                      binary() | not_loaded | unavailable,
              dead =
                  not_loaded ::
                      boolean() | not_loaded | unavailable,
              exit_status =
                  not_loaded ::
                      integer() |
                      none | not_loaded | unavailable,
              origin = none :: none | reference(),
              snapshot_id = none :: none | reference(),
              model_version = 2 :: pos_integer(),
              observation = none :: none | observation()}.
```

## In other ports

A tmux pane

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane`](/en/py/latest/reference/libtmux-pane/) (class) |
| Ruby | [`LibTmux::Pane`](/en/ruby/latest/reference/libtmux-pane-14z6/) (class) |
| Lua | [`libtmux.Pane`](/en/lua/latest/reference/libtmux-pane/) (class) |
| PowerShell | [`LibTmux\Get-TmuxPane`](/en/powershell/latest/reference/libtmux-get-tmuxpane/) (cmdlet). This cmdlet reads shared .NET `LibTmux.Pane` objects. Its [`-Server`](/en/powershell/latest/reference/libtmux-get-tmuxpane/#LibTmux%5CGet-TmuxPane.parameter.Server), [`-Session`](/en/powershell/latest/reference/libtmux-get-tmuxpane/#LibTmux%5CGet-TmuxPane.parameter.Session), and [`-Window`](/en/powershell/latest/reference/libtmux-get-tmuxpane/#LibTmux%5CGet-TmuxPane.parameter.Window) parameter sets select the scope. |
| Julia | [`LibTmux.PaneSnapshot`](/en/julia/latest/reference/libtmux-panesnapshot/) (struct). `PaneSnapshot` holds captured pane data. Actions use its `PaneRef`; `PaneOccurrence` adds a window placement in a session. |
| Elixir | [`LibTmux.Pane`](/en/elixir/latest/reference/libtmux-pane/) (struct). `Pane` is an immutable physical pane observation. It does not send keys or capture text. |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| Common Lisp | [`libtmux:pane`](/en/lisp/latest/reference/libtmux-pane/) (class). `pane` is an immutable captured physical pane. |
| TypeScript | [`pane.Pane`](/en/ts/latest/reference/pane-pane/) (class) |
| Rust | [`pane.Pane`](/en/rs/latest/reference/pane-pane/) (struct) |
| Go | [`tmux.Pane`](/en/go/latest/reference/tmux-pane/) (struct) |
| Java | [`io.github.libtmux.Pane`](/en/java/latest/reference/io-github-libtmux-pane-pane/) (class) |
| Clojure | [`libtmux.data/panes`](/en/clojure/latest/reference/libtmux-data-panes/) (function). Traverses captured pane maps without I/O. Use keyword lookup for scalar observations and the preserved :tmux/ref for effects. |
| Kotlin | [`io.github.libtmux.kotlin.Pane`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-pane/) (class) |
| Scala | [`io.github.libtmux.scaladsl.Pane`](/en/scala/latest/reference/io-github-libtmux-scaladsl-pane/) (typealias) |
| C# | [`LibTmux.Pane`](/en/csharp/latest/reference/libtmux-pane/) (class) |
| F# | [`LibTmux.FSharp.Pane`](/en/fsharp/latest/reference/libtmux-fsharp-pane/) (module). This F# module reads captured fields and starts explicit operations on the shared .NET `LibTmux.Pane` type. |
| C++ | [`libtmux::Pane`](/en/cxx/latest/reference/libtmux-pane/) (class) |
| Swift | [`Pane`](/en/swift/latest/reference/pane/) (struct) |
| OCaml | [`Libtmux.Pane.t`](/en/ocaml/latest/reference/libtmux-pane-t/) (typealias) |
| Perl | [`LibTmux::Pane`](/en/perl/latest/reference/libtmux-pane/) (class). A physical pane retains its captured graph, without retaining transport. |
