io.github.libtmux.Pane.Pane.dead
Java
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- io.github.libtmux.Pane
- Declared in
- Pane
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Pane.java
-
Whether this pane's process has exited, read fresh rather than from the capture.
Dying is something that happens between reads, so a cached answer would report a pane that died after this handle was captured as alive forever — the trap a snapshot-backed
isDead()would set, which is why there is no such accessor on the capture itself. This asks tmux directly instead, every time.A dead pane is not necessarily a gone one:
remain-on-exitkeeps it around, still listed, to be read. A pane with noremain-on-exitis simply removed once its process exits —#refresh()on this handle then throwsObjectDoesNotExistException, and this method throws too. Unlike every other commandPanesends,display-message -tdoes not error on a target it cannot resolve — it exits 0 with nothing on stdout — so a gone pane looks like a live one that answered nothing rather than like a failure. That empty read, and not a "can't find pane" from tmux, is what this method throws on: a real pane always answers0or1for this format, never nothing.- Raises
-
-
ObjectDoesNotExistException – if the pane is gone from a server that still answers
-
0 declared, 0 inherited