# LibTmux.Pane.current_command

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/entities.ex
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-pane-current_command/

```elixir
LibTmux.Pane.current_command: LibTmux.Schema.observed(String.t()) = :unloaded
```

## Guides

Pages that discuss `current_command`.

- [Observation and filter schema](/en/elixir/pr-173/topics/schema/)

## In other ports

The command tmux reports running in a pane

| Port | API | Differs from Elixir |
| --- | --- | --- |
| Elixir | `LibTmux.Pane.current_command` | This page |
| Python | [`libtmux.Pane.pane_current_command`](/en/py/latest/reference/libtmux-pane-pane_current_command/) (attribute) | None recorded in the model |
| Ruby | [`LibTmux::PaneSnapshot#current_command`](/en/ruby/latest/reference/libtmux-panesnapshot-current_command/) (method). Behavior: Captured records. | None recorded in the model |
| Lua | [`libtmux.SnapshotPane.current_command`](/en/lua/latest/reference/libtmux-snapshotpane-current_command/) (attribute) | None recorded in the model |
| Rust | [`pane.Pane.current_command`](/en/rs/latest/reference/pane-pane-current_command/) (method). Return the command currently running in the pane. | None recorded in the model |
| Go | [`tmux.Pane.CurrentCommand`](/en/go/latest/reference/tmux-pane-currentcommand/) (method). CurrentCommand returns tmux #{pane_current_command} as string from this Pane's materialized pane-scoped fields. | None recorded in the model |
| Java | [`io.github.libtmux.Pane.currentCommand`](/en/java/latest/reference/io-github-libtmux-pane-pane-currentcommand/) (method). The command tmux reported running here. | None recorded in the model |
| C++ | [`libtmux::Pane::command`](/en/cxx/latest/reference/libtmux-pane-command-6i9x/) (method). What is running in the pane now, which is not what started it. | readonly |
| Swift | [`Pane.currentCommand`](/en/swift/latest/reference/pane-currentcommand/) (property). The command tmux believes is running. It reflects the foreground process, so it changes as the user works. | None recorded in the model |
| OCaml | [`Libtmux.Pane.current_command`](/en/ocaml/latest/reference/libtmux-pane-current_command/) (function) | None recorded in the model |
| Perl | [`LibTmux::Pane::current_command`](/en/perl/latest/reference/libtmux-pane-current_command/) (method). string. Local captured data; no I/O. | Schema-validated captured data; reading performs no tmux I/O. |
| Raku | [`LibTmux::Model::Pane.current-command`](/en/raku/latest/reference/libtmux-model-pane-current-command/) (method). Captured pane_current_command; local text access. | None recorded in the model |

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

No TypeScript equivalent. no equivalent on `Pane`

No C# equivalent. no equivalent on `Pane`

No equivalent is recorded in PowerShell, Julia, Erlang, Common Lisp, Clojure, Kotlin, Scala or F#.
