Core Library0.xAPI reference

Choose documentation 1

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.

MoreLess about this notice

function libtmux-fsharp

Control.watchPane

Streams one pane's output from a borrowed control client.

Source and package
Qualified name
LibTmux.FSharp.Control.watchPane
Namespace
LibTmux.FSharp
Declared in
Control
Package
LibTmux.FSharp
Source
src/LibTmux.FSharp/Control.fsi
F# value signaturesDeclares the name and type of a value or function in a signature.Language documentation watchPane: pane: LibTmux.Pane -> session: IControlModeSession -> IAsyncEnumerable<TmuxEvent>

Description

The stream ends with TmuxPaneGoneEvent once the pane is confirmed gone, or with TmuxExitEvent when the client ends. TmuxPanePausedEvent and TmuxPaneContinuedEvent bracket output a slow reader missed. It reads the client's single event stream, so other events are consumed and dropped; follow several panes through one client with watchPanes. Match what it yields with PaneWatch.

tmux discards output it has not yet sent once a pane's program exits, so the last lines of a program that exits at once may never arrive. Read final output with Pane.run, or capture a pane kept with remain-on-exit.

Parameters
Errors
  • System.ArgumentException – The pane is not in the session the client is attached to; tmux sends a control client output only from that session.

  • System.InvalidOperationException – The pane's window left the client's session while it was watched, so tmux sends none of its output any more.

Same owner

containment 1 of 10 shown

Other members of LibTmux.FSharp.Control whose names share watchPane. They sit on the same type; that does not make them behave alike.

All 10 members of Control

Recorded calls

source calls
No call edges in the F# model.

The F# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.FSharp.Control.watchPane.

Guides

task material

Pages that discuss watchPane.

Esc
Search in

Type to search.

Reference previewOpen reference