ControlMode.Read
Read reads control-protocol output within ctx. Exactly one caller may read at a time. After the client exits, callers may drain preserved output through io.EOF; after ControlMode.Close, a non-empty Read returns os.ErrClosed. It returns ctx errors while waiting for output.
Source and package
- Qualified name
-
tmuxtest.Control Mode. Read - Package
- tmuxtest
- Declared in
ControlMode- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/control.go
- func (c *Control
Mode ) Read( ctx context.Context , data []byte, ) (int, error) -
- Errors
- It returns ctx errors while waiting for output.doc comment · control.go:108
- Parameters
-
Recorded calls
source callsThe Go 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 tmuxtest.ControlMode.Read.