Core LibraryAPI Reference

Choose documentation 1

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

function libtmux-fsharp latest

Pane.waitForText

Namespace LibTmux.FSharp.Pane.waitForText LibTmux.FSharp

Waits for a line the pane prints to contain the text.

View as Markdown

Source and package
Module
LibTmux.FSharp
Declared in
Pane
Package
LibTmux.FSharp
Source
src/LibTmux.FSharp/Hierarchy.fsi
F# value signatures Declares the name and type of a value or function in a signature. Language documentation waitForText: cancellationToken: CancellationToken -> timeout: TimeSpan -> text: string -> pane: LibTmux.Pane -> Task<PaneWaitResult>
function [source]

Description#

Text already on screen ends the wait at once as <c>PresentAtEntry</c>. The wait sleeps on the pane's own output rather than polling, and ends early when the pane's program exits or a full-screen program starts. Running out of time returns the outcome <c>TimedOut</c>; only <c>Mirror.waitUntil</c> raises instead.

Parameters
Raises

Discussed in Getting started , Streams and cleanup

Esc

Type to search.