# LibTmux::Pane::current_command

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Pane.pm#L6
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-pane-current_command/

```
sub current_command($self)
```

string. Local captured data; no I/O.

## Methods

## In other ports

The command tmux reports running in a pane

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.pane_current_command`](/en/py/latest/reference/libtmux-pane-pane_current_command/) (attribute) |
| Ruby | [`LibTmux::PaneSnapshot#current_command`](/en/ruby/latest/reference/libtmux-panesnapshot-current_command/) (method) |
| Lua | [`libtmux.SnapshotPane.current_command`](/en/lua/latest/reference/libtmux-snapshotpane-current_command/) (attribute) |
| Elixir | [`LibTmux.Pane.current_command`](/en/elixir/latest/reference/libtmux-pane-current_command/) (property) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on `Pane` |
| Rust | [`pane.Pane.current_command`](/en/rs/latest/reference/pane-pane-current_command/) (method) |
| Go | [`tmux.Pane.CurrentCommand`](/en/go/latest/reference/tmux-pane-currentcommand/) (method) |
| Java | [`io.github.libtmux.Pane.currentCommand`](/en/java/latest/reference/io-github-libtmux-pane-pane-currentcommand/) (method) |
| C# | no equivalent on `Pane` |
| C++ | [`libtmux::Pane::command`](/en/cxx/latest/reference/libtmux-pane-command-6i9x/) (method) |
| Swift | [`Pane.currentCommand`](/en/swift/latest/reference/pane-currentcommand/) (property) |
| OCaml | [`Libtmux.Pane.current_command`](/en/ocaml/latest/reference/libtmux-pane-current_command/) (function) |

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