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

Pane.watchText

As Duration), and also returns what the pane showed.

Source and package
Qualified name
io.github.libtmux.Pane.watchText
Package
io.github.libtmux
Declared in
Pane
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Pane.java

Description#

The output is the pane at the wait's last successful read, so a pane that was killed, or a server that went away, mid-wait still leaves the caller what had been printed. Ending as TextOutcome.PANE_GONE or TextOutcome.SERVER_GONE is an answer, not an exception, and neither is decided by a timer: the server answers a probe now or it does not, and lists the pane now or does not, with or without another client attached to it.

Parameters
Returns

the outcome and the output so far for watchText(text, timeout)

Raises
  • LibTmuxException – if a read fails for a reason of the caller's while the server is still answering and still lists this pane for watchText(text, timeout)

  • InterruptedException – if the waiting thread is interrupted for watchText(text, timeout)

  • IllegalArgumentException – if every is shorter than 10 ms for watchText(text, timeout, every)

Esc

Type to search.

Reference previewOpen reference