tmux.Server.LoadBufferFrom
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- 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
-
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.SetBufferis 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 returnsErrConnectionRequiresProcess: tmux offers no stdin to a control client, so useServer.LoadBufferand a path over a connection.
0 declared, 0 inherited