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 latest

Pane.paste_buffer

Paste a buffer into the pane via $ tmux paste-buffer.

Source and package
Qualified name
libtmux.Pane.paste_buffer
Module
libtmux
Declared in
Pane
Package
libtmux
Source
src/libtmux/pane.py
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Ruby LuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala OCaml F# Clojure
paste_buffer ( self, buffer_name: str | None = None, delete_after: bool | None = None, linefeed_separator: bool | None = None, bracket: bool | None = None, separator: str | None = None, no_vis: bool | None = None, ) → None

Examples#

>>> server.set_buffer('pasted_text')
>>> pane.paste_buffer()
Parameters
  • buffer_name (str | None) # – Name of the buffer to paste (-b flag).

  • delete_after (bool | None) # – Delete the buffer after pasting (-d flag).

  • linefeed_separator (bool | None) # – Use newline as the line separator instead of carriage return (-r flag).

  • bracket (bool | None) # – Use bracketed paste mode (-p flag).

  • separator (str | None) # – Separator between lines (-s flag).

  • no_vis (bool | None) # – Paste the buffer's raw bytes without passing them through vis(3) escaping (-S flag). tmux 3.7 escapes pasted content by default; set this to restore the raw behaviour. Requires tmux 3.7+. If used with tmux < 3.7, a warning is issued and the flag is ignored.

tmux command#

The tmux commands behind paste_buffer.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Paste a buffer into a pane

Equivalents of Paste a buffer into a pane in other languages
Language Equivalent
Lua libtmux.Pane:paste_buffer
Erlang tmux_buffer:paste/3
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