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:paste/3

Send a named buffer or latest to a registered pane. Defaults preserve payload bytes: LF separators and unsanitized input. On tmux 3.7+, raw paste uses -S; sanitize=true selects its safe print encoding. Earlier releases reject that request with unsupported_capability before dispatch.

Source and package
Qualified name
tmux_buffer:paste/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 LuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala OCaml F# Clojure
paste(Pane, Buffer, Options) -spec paste(tmux_model:pane(), target(), paste_options()) -> {ok, tmux_operation:completed()} | {error, map()}.

Description#

separator is NUL-free; delete removes the buffer after the native paste call. bracketed adds markers only if the target has enabled that terminal mode. Native input-off/dead-pane behavior still applies. Completion establishes the tmux command result, not consumption by the child. No automatic retry occurs.

tmux command#

The tmux commands behind paste/3.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss paste/3.

In other ports#

Paste a buffer into a pane

Equivalents of Paste a buffer into a pane in other languages
Language Equivalent
Python libtmux.Pane.paste_buffer
Lua libtmux.Pane:paste_buffer
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript pane.Pane.pasteBuffer
Rust pane.Pane.paste_buffer
Go tmux.Pane.PasteBuffer
Java io.github.libtmux.Pane.pasteBuffer
C# LibTmux.Pane.PasteBufferAsync
C++ libtmux::Pane::paste
Swift Server.paste(buffer:into:)
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, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference