Server.set_buffer
set_buffer(name => string, data => bytes).
Source and package
-
Description#
Load a named tmux buffer through stdin bytes rather than interpolating data into a command. Empty data is permitted.
"show_buffer"retrieves bytes; buffer ownership remains in the daemon until"delete_buffer"or an external change.Returns
undefafter command acceptance. Performs I/O; failures propagate throughLibTmux::X. Captured objects are not modified.$server->set_buffer(name => 'application', data => "a\0b");Methods#
tmux command#
The tmux commands behind set_buffer.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Put text into a paste buffer
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | 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. |
No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.