Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

method libtmux stable

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
PowerShell Julia Ruby LuaTypeScriptRustGoJavaC#C++Swift Kotlin Scala F#
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 paste-buffer

In other ports Paste a buffer into a pane
Esc

Type to search.

Reference preview Open reference