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.

method libtmux-java latest

Builder.running

Runs a command, which closes the pane when it exits unless #keepOnExit() is set.

Source and package
Qualified name
io.github.libtmux.SplitSpec.Builder.running
Package
io.github.libtmux
Declared in
Builder
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/SplitSpec.java
public Builder running(String... argv)

Description#

A command that exits fast enough races Pane#split()'s own read-back: tmux can destroy the pane before the second listing that confirms it runs, and the split then throws TargetGoneException even though tmux made the pane and ran the command in it. #keepOnExit() removes the race by keeping the pane there to be read.

tmux also reports the pane before its process has become this command, so a read at once can still see the process about to exec it: wait for the command with java.time.Duration).

Parameters
Esc

Type to search.

Reference previewOpen reference