Server.saveBuffer
Write a paste buffer to a file instead of reading it back.
Source and package
-
Description#
showBuffer()returns the contents through this process; for a large buffer that means holding it in memory to put it somewhere else. tmux writes the file itself, on the machine tmux is running on.Examples#
await server.saveBuffer("captured", "/tmp/build.log");
tmux command#
The tmux commands behind saveBuffer.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Write a paste buffer to a file
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| Rust | no equivalent on Server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.