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

Go API

Go documentation

tmux.Pane.Writer

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
Pane
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/pane_input.go
Writer ( ctx : context.Context ) → io.Writer
method [source]
method [source]
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, so fmt.Fprintln submits 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

Esc

Type to search.