libtmux Reference MCP Search
On this page

io.github.libtmux.batch.Batch.Batch

View as Markdown

Module
io.github.libtmux.batch.Batch
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/batch/Batch.java
class io.github.libtmux.batch.Batch.Batch
classreadonly [source]
classreadonly [source]
class io.github.libtmux.batch.Batch.Batch

Several tmux commands in one invocation, each with an outcome of its own.

<p>tmux runs a group until a command fails and then discards the rest, so the number of replies cannot say which command failed: an error in the first position and an error in the last both come back as one nonzero exit. Counting replies is wrong in every position but one.

<p>A marker is therefore interleaved after each operation. Markers are discarded along with everything else after a failure, so the last marker seen is exactly the last operation tmux ran, and the operations either side of that boundary are known rather than guessed.

5 declared, 0 inherited

Members

  • add method Adds one tmux command, its arguments already separate elements.
  • Batch method Collects operations to run together.
  • length method How many bytes the collected operations come to as the one command tmux parses.
  • run method Runs every collected operation in one tmux invocation.
  • size method How many operations have been collected.
Esc

Type to search.