CommandResult
One completed invocation.
Source and package
- Qualified name
-
io.github .libtmux .transport. Command Result - Package
- io.github.libtmux.transport
- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java
-
Description#
A nonzero exit is data, not a failure. tmux reports an ordinary "no such pane" the same way it reports a real problem, so only a higher-level method knows which one should raise.
Members5#
- exitCode method the process exit status
- stderr method stderr split into lines, with blanks dropped
- stdout method stdout split at LF, preserving carriage returns and interior blanks
- succeeded method Whether tmux reported success.
- toString method Counts only, because both channels carry captured terminal content.
Guides#
Pages that discuss CommandResult.