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

server.Server.showBuffer

TypeScript

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
PythonRubyLuaRustGo Java .NET C++ Swift
showBuffer ( name : : string ) → Promise<readonly string[]>
method [source]
method [source]
showBuffer

Read a named paste buffer's contents.

In other ports Read a paste buffer's contents

Examples

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

0 declared, 0 inherited

Esc

Type to search.