libtmux Reference MCP Search
On this page

server.Server.saveBuffer

View as Markdown

Module
server
Declared in
Server
Package
@libtmux/libtmux
Source
packages/libtmux/src/server.ts
saveBuffer ( name : : string , path : : string , options : : { readonly append?: boolean } ) Promise<void>
method [source]
method [source]
saveBuffer

Write a paste buffer to a file instead of reading it back.

showBuffer returns the contents through this process; for a large buffer that means holding it in memory to put it somewhere else. tmux writes the file itself, on the machine tmux is running on.

Examples

await server.saveBuffer("captured", "/tmp/build.log");

0 declared, 0 inherited

Esc

Type to search.