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

Server.save_buffer

Write a paste buffer to a file, letting tmux do the writing.

Source and package
Qualified name
libtmux::server::Server::save_buffer
Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
pub async fn save_buffer( &self, name: Option<&str>, path: impl AsRef<Path>, ) -> Result<(), Error>

Description#

The counterpart to Self::load_buffer(), and the same reasoning: the bytes never cross a command line, so a buffer larger than an argument can hold still round-trips. tmux writes as the user running the server.

Errors

Returns an error when the buffer is missing or tmux cannot write the path.

Parameters

tmux command#

The tmux commands behind save_buffer.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference