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.LoadBufferFrom

LoadBufferFrom streams source into a named or newly allocated tmux paste buffer, reading it to completion without holding its contents in memory. It carries any bytes, including NUL, and is bounded by neither argv nor tmux's command-message limit, which is what Server.SetBuffer is bounded by.

Source and package
Qualified name
tmux.Server.LoadBufferFrom
Package
tmux
Declared in
Server
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_buffers.go

Description#

A copy failure after tmux exits zero means the buffer holds only the prefix that reached tmux, and cancellation does not prove tmux stored nothing. A source that blocks regardless of cancellation does not hold the call, and is still being read when it returns. A Connection-bound Server returns ErrConnectionRequiresProcess: tmux offers no stdin to a control client, so use Server.LoadBuffer and a path over a connection.

tmux command#

The tmux commands behind LoadBufferFrom.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference