Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-go latest

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.SaveBufferTo
Package
tmux
Declared in
Server
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_buffers.go

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 returns ErrConnectionRequiresProcess: tmux offers no stdout to a control client, so use Server.SaveBuffer and a path over a connection.

tmux command#

The tmux commands behind SaveBufferTo.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference