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

TextWait

How a wait for text on a pane ended, and what the pane had shown by then.

Source and package
Qualified name
io.github.libtmux.TextWait
Package
io.github.libtmux
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/TextWait.java
class io.github.libtmux.TextWait (outcome: TextOutcome, output: List<String>)

Description#

Pane#awaitText() answers with the outcome alone. This carries the screen as well, which a wait that ends because the pane or the server went away needs most: the output so far is all there will ever be.

Parameters
  • outcome (TextOutcome) # – why the wait ended

  • output (List<String>) # – the rows of the pane at its last successful read, wrapped rows rejoined, the echo of what this library typed removed and trailing blank rows dropped; empty when the pane was gone before the first read

Members2#

  • outcome method why the wait ended
  • output method the rows of the pane at its last successful read, wrapped rows rejoined, the echo of what this library typed removed and trailing blank rows dropped; empty when the pane was gone before the first read
Esc

Type to search.

Reference previewOpen reference