Pane.pid
Return the process id of the pane's foreground process.
Source and package
-
Description#
Nonefor a pane with no process: tmux 3.8 reports#{pane_pid}as an empty string once the pane's process has exited (remain-on-exitkeeps such a pane instead of closing it). A value is not evidence the process is still alive, on any release: every release before 3.8 keeps reporting the exited process's own pid rather than clearing the field, and a pid can be reused once its process is gone. CheckSelf::is_dead()for liveness; do not infer it from this.
In other ports#
The process id of the program in a pane
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Elixir | Lib |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on Pane |
| Go | no equivalent on Pane |
| Java | io |
| C# | no equivalent on Pane |
| C++ | libtmux:: |
| Swift | no equivalent on Pane |
| OCaml | Libtmux |
| Perl | Lib Schema-validated captured data; reading performs no tmux I/O. |
No equivalent is recorded in Ruby, PowerShell, Julia, Erlang, Common Lisp, Clojure, Kotlin, Scala or F#.