tmux_buffer:load/3
Load binary bytes under a name, or create an automatic buffer. Input may contain NUL. Empty input succeeds without changing the buffer store, including an existing name. The command payload, including argv and stdin, must fit the endpoint's 256 KiB admission limit. See tmux_server:command/3.
Source and package
- Qualified name
-
tmux_buffer: load/3 - Declared in
tmux_buffer- Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_buffer.erl
- Other languages
- Perl PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript Rust Go Java C#C++Swift Kotlin Scala OCaml F# Clojure
- load(Server, Name, Bytes) -spec load(tmux
_server: (), binary() | automatic, binary()) -> {ok, tmuxt _operation: ()} | {error, map()}.completed -
Description#
Returns the completed command result, not a persistent buffer handle. No clipboard write is requested. Native stored-name rules still apply.
tmux command#
The tmux commands behind load/3.
tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss load/3.
In other ports#
Fill a paste buffer from a file
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| 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, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.