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

Go API

Go documentation

tmux.Server.LoadBufferFrom

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
LoadBufferFrom ( ctx : context.Context , source : io.Reader , options : LoadBufferFromOptions ) → error
method [source]
method [source]
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.

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.

0 declared, 0 inherited

Esc

Type to search.