Core LibraryalphaAPI 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-cxx latest

Pane.exit_status

What the pane's process exited with, once it has.

Source and package
Qualified name
libtmux::Pane::exit_status
Namespace
libtmux
Declared in
Pane
Package
libtmux-cxx
Source
include/libtmux/entities.hpp
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] std::optional<int> exit_status() const noexcept;

Description#

Optional rather than a number because zero is a real exit status and "still running" is not a status at all — tmux renders the field empty until the process is gone. Only a pane held on screen by remain-on-exit can report one: without it tmux destroys the pane, and there is nothing left to ask.

Esc

Type to search.

Reference previewOpen reference