Server.set_buffer
Store data in a tmux paste buffer.
Source and package
-
Description#
Passing
Nonefor the name lets tmux choose one, matchingset-bufferwithout-b. The data is marked sensitive.Errors
Returns an error when tmux rejects the buffer name or data.
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 |
| 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 | Lib Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.