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.

class libtmux-java latest

CommandResult

One completed invocation.

Source and package
Qualified name
io.github.libtmux.transport.CommandResult
Package
io.github.libtmux.transport
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/transport/CommandResult.java
class io.github.libtmux.transport.CommandResult (exitCode: int, stdout: List<String>, stderr: List<String>)

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.

Parameters

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.

Esc

Type to search.

Reference previewOpen reference