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

tmux.PaneObservation.Reader

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmux
Declared in
PaneObservation
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/control_observation.go
Reader ( ctx : context.Context ) → io.Reader
method [source]
method [source]
Reader

Reader returns the pane's output after the baseline as a byte stream: what the program in the pane writes to its terminal, in order, and nothing from any other pane on the connection. Reads block until the pane writes, ctx ends, or the observation closes. A lost observation ends the stream with ErrPaneObservationLost rather than io.EOF. The bytes are the terminal's: escape sequences and carriage returns arrive as written, and the echo of what is typed into the pane arrives before the reply, as it does on screen. Exactly one reader or direct notification read may run at a time.

A malformed notification on the connection is skipped, as PaneObservation.Notifications skips it; every other error ends the stream.

0 declared, 0 inherited

Esc

Type to search.