tmux.Pane.Writer
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- tmux
- Declared in
- Pane
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/pane_input.go
- Writer ( ctx : context.Context ) io.Writer
-
Writer returns the pane's keyboard as an
io.Writer. Bytes written to it are typed into the pane literally, and each newline is the Enter key, sofmt.Fprintlnsubmits a line as a person at the keyboard would. Text with no trailing newline is typed and left on the line.A write returns once tmux has taken the keys, before the pane's program has read them; the program interprets what arrives. A line with a trailing newline costs two tmux commands, the text and a separate Enter; buffering whole lines still costs far less than writing bytes one at a time.
0 declared, 0 inherited