Core LibraryunreleasedAPI reference

Choose documentation 3

latest

Current version

latest
English

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

MoreLess about this notice

function LibTmux.jl

paste_bytes

Source and package
Qualified name
LibTmux.paste_bytes
Module
LibTmux
Package
LibTmux
Source
src/pane_io.jl

Methods

paste_bytes( connection::LibTmux.ControlConnection, pane::LibTmux.PaneRef, bytes::AbstractVector{UInt8}; bracketed, kwargs..., )[source]

Paste exact buffer bytes through the pinned connection without appending Enter or converting LF to CR. Bracketed paste and application transformations follow the subprocess method. A private file and randomly named buffer carry the data; success, failure and cancellation attempt uncancelled 900 ms remote cleanup. Cleanup failure retains its buffer reference alongside any primary error. Already-delivered input cannot be rolled back. Empty input validates the local reference and returns nothing without submitting a command.

paste_bytes(connection::ControlConnection, pane::PaneRef, bytes; bracketed=false, kwargs...)

paste_bytes( server::LibTmux.Server, pane::LibTmux.PaneRef, bytes::AbstractVector{UInt8}; bracketed, kwargs..., )[source]

Paste through a temporary owned buffer, retaining LF rather than converting it to CR. bracketed=true requests bracketed paste when the application has enabled it. No Enter is appended. tmux receives exact buffer bytes, but the terminal driver and target application can transform them.

paste_bytes(server, pane, bytes; bracketed=false, kwargs...)

Success, failure and cancellation attempt bounded cleanup of only the new buffer with a separate, uncancelled five-second cleanup budget. Before tmux 3.4 an exact-name delete can take an unrelated buffer when the name is missing, so the paste itself deletes the buffer (paste-buffer -d) and a failed stage leaves its named buffer behind instead of risking another one. A cleanup failure preserves the original error in CompositeException. Subprocess generation checks remain best effort; input already delivered to the pane cannot be rolled back. Empty bytes validate the target and return nothing without sending input.

Recorded calls

source calls
No call edges in the Julia model.

The Julia reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.paste_bytes.

tmux command

task material

The tmux commands behind paste_bytes.

tmux C API

task material

The C declarations in tmux that implement these commands.

Guides

task material

Pages that discuss paste_bytes.

Guides
Esc
Search in

Type to search.

Reference previewOpen reference