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

Go API

Go documentation

tmux.Server.SaveBufferTo

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
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_buffers.go
SaveBufferTo ( ctx : context.Context , destination : io.Writer , options : SaveBufferToOptions ) → error
method [source]
method [source]
SaveBufferTo

SaveBufferTo streams a named or most-recent tmux paste buffer into destination without holding its contents in memory. It writes any bytes, including NUL, and preserves them exactly where Server.ShowBuffer reconstructs lines.

Cancellation does not prove destination received a complete buffer, and a copy failure takes precedence over a completed command's exit status because it means destination never saw everything tmux sent. A destination that blocks regardless of cancellation does not hold the call. A Connection -bound Server returns ErrConnectionRequiresProcess : tmux offers no stdout to a control client, so use Server.SaveBuffer and a path over a connection.

0 declared, 0 inherited

Esc

Type to search.