tmux.Server.SaveBufferTo
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
- SaveBufferTo ( ctx : context.Context , destination : io.Writer , options : SaveBufferToOptions ) error
-
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.ShowBufferreconstructs lines.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.
0 declared, 0 inherited