Pane.watchText
As Duration), and also returns what the pane showed.
Source and package
- Qualified name
-
io.github .libtmux .Pane. watch Text - 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_GONEorTextOutcome.SERVER_GONEis 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
-
-
Lib
Tmux – if a read fails for a reason of the caller's while the server is still answering and still lists this pane forException watchText(text, timeout) -
Interrupted
Exception – if the waiting thread is interrupted forwatchText(text, timeout) -
Illegal
Argument – ifException everyis shorter than 10 ms forwatchText(text, timeout, every)
-