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-ts latest

Server.saveBuffer

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

Source and package
Qualified name
Server.saveBuffer
Module
server
Declared in
Server
Package
libtmux
Source
packages/libtmux/src/server.ts
Other languages
PowerShell Julia Elixir Python Ruby Lua Rust Go Java C#C++Swift Kotlin Scala F#

Description#

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");

tmux command#

The tmux commands behind saveBuffer.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Write a paste buffer to a file

Equivalents of Write a paste buffer to a file in other languages
Language Equivalent
Python libtmux.Server.save_buffer
Rust no equivalent on Server
Go tmux.Server.SaveBuffer
Java no equivalent on Server
C# LibTmux.TmuxBuffers.SaveAsync
C++ libtmux::Server::save_buffer
Swift Server.saveBuffer(named:to:)

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference