tmux.PaneObservation.Reader
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- tmux
- Declared in
- PaneObservation
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/control_observation.go
- Reader ( ctx : context.Context ) io.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
ErrPaneObservationLostrather thanio.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.Notificationsskips it; every other error ends the stream.
0 declared, 0 inherited