Core LibraryunreleasedAPI Reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux_erlang has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-erlang latest

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:t(), binary() | automatic, binary()) -> {ok, tmux_operation:completed()} | {error, map()}.

Description#

Returns the completed command result, not a persistent buffer handle. No clipboard write is requested. Native stored-name rules still apply.

Parameters

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

Equivalents of Fill a paste buffer from a file in other languages
Language Equivalent
Python libtmux.Server.load_buffer
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript server.Server.loadBuffer
Rust no equivalent on Server
Go tmux.Server.LoadBuffer
Java no equivalent on Server
C# LibTmux.TmuxBuffers.LoadAsync
C++ libtmux::Server::load_buffer
Swift Server.loadBuffer(from:named:)
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#.

Esc

Type to search.

Reference previewOpen reference