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 |
| Rust | no equivalent on Server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Kotlin, Scala or F#.