Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

Pane.pid

Return the process id of the pane's foreground process.

Source and package
Qualified name
libtmux::pane::Pane::pid
Module
pane
Declared in
Pane
Package
libtmux
Source
crates/libtmux/src/pane.rs
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript Go Java C# C++ Swift Kotlin Scala OCaml F# Clojure
#[must_use] pub fn pid(&self) -> Option<u32>

Description#

None for a pane with no process: tmux 3.8 reports #{pane_pid} as an empty string once the pane's process has exited (remain-on-exit keeps 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. Check Self::is_dead() for liveness; do not infer it from this.

In other ports#

The process id of the program in a pane

Equivalents of The process id of the program in a pane in other languages
Language Equivalent
Python libtmux.Pane.pid
Lua libtmux.SnapshotPane.pid
Elixir LibTmux.Pane.pid
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.github.libtmux.Pane.pid
C# no equivalent on Pane
C++ libtmux::Pane::pid
Swift no equivalent on Pane
OCaml Libtmux.Pane.pid
Perl LibTmux::Pane::pid 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#.

Esc

Type to search.

Reference previewOpen reference