Server.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.
Source and package
- Qualified name
-
tmux.Server. Save Buffer To - Package
- tmux
- Declared in
Server- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server_buffers.go
- func (s Server) SaveBufferTo( ctx context
.Context , destination io.Writer , options SaveBuffer , ) errorTo Options -
Description#
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 returnsErrConnectionRequiresProcess: tmux offers no stdout to a control client, so useServer.SaveBufferand a path over a connection.- Parameters
tmux command#
The tmux commands behind SaveBufferTo.
tmux C API#
The C declarations in tmux that implement these commands.