Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-java latest

Pane.paste

Pastes text into this pane as one block, leaving nothing behind on the server.

Source and package
Qualified name
io.github.libtmux.Pane.paste
Package
io.github.libtmux
Declared in
Pane
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Pane.java

Description#

Nothing in the text is looked up as a key name, so a line containing Enter or a bracket arrives as those characters. That is what an editor, a REPL, or anything reading a here-document needs, and it is the difference from #send().

tmux needs a buffer to paste from, and this one travels in the same invocation as the paste that consumes it. A caller that stops in between therefore cannot leave the text in the paste history every session on the server can read.

The text goes to tmux on standard input rather than as an argument, so it is not bounded by the size of a tmux command and never reaches tmux's parser.

Parameters
Raises

tmux command#

The tmux commands behind paste.

load-buffer (except before tmux 3.4) paste-buffer (except before tmux 3.4)

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference