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

Python API

Python documentation

libtmux.Server.show_buffer

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
Other languages
RubyLuaTypeScriptRustGo Java .NET C++ Swift
show_buffer ( self , buffer_name : str | None = None ) → str
method [source]
method [source]
show_buffer

Show content of a paste buffer via $ tmux show-buffer.

Parameters
  • buffer_name ( str | None ) – Name of the buffer (-b flag). Defaults to the most recent.

Returns

str Buffer content.

In other ports Read a paste buffer's contents

Examples

>>> server.set_buffer('test_data')
>>> server.show_buffer()
'test_data'
const lines = await server.showBuffer("greeting");
lines[0]; // "hello"

0 declared, 0 inherited

Esc

Type to search.